Raise minimum supported Qt version to 5.12

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-02-18 11:51:00 +03:00
parent 6139d0d65a
commit f022458383
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
20 changed files with 42 additions and 148 deletions

View file

@ -359,7 +359,6 @@ void Application::runExternalProgram(const BitTorrent::Torrent *torrent) const
for (int i = 1; i < argCount; ++i)
argList += QString::fromWCharArray(args[i]);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
QProcess proc;
proc.setProgram(QString::fromWCharArray(args[0]));
proc.setArguments(argList);
@ -385,9 +384,6 @@ void Application::runExternalProgram(const BitTorrent::Torrent *torrent) const
args->startupInfo->hStdError = nullptr;
});
proc.startDetached();
#else
QProcess::startDetached(QString::fromWCharArray(args[0]), argList);
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
#else // Q_OS_WIN
// Cannot give users shell environment by default, as doing so could
// enable command injection via torrent name and other arguments