Qt4: fix Qt4 build failure
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user