Qt4: fix Qt4 build failure

This commit is contained in:
wmayer
2020-10-16 13:56:27 +02:00
parent 2473417a23
commit 852b06cae7

View File

@@ -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();