Skip to content

Commit

Permalink
Qt4: fix Qt4 build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 16, 2020
1 parent e1b56f8 commit 94ec50c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/NetworkRetriever.cpp
Expand Up @@ -374,8 +374,12 @@ void NetworkRetriever::wgetFinished(int exitCode, QProcess::ExitStatus status)
bool NetworkRetriever::testWget()
{
QProcess proc;
#if QT_VERSION > 0x050000
proc.setProgram(QString::fromLatin1("wget"));
proc.start();
#else
proc.start(QString::fromLatin1("wget"));
#endif
bool ok = proc.state() == QProcess::Running;
proc.kill();
proc.waitForFinished();
Expand Down

0 comments on commit 94ec50c

Please sign in to comment.