I forgot that system() doesn ot fork()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2016-08-10 16:06:40 +00:00
parent 4485dbdef4
commit 273e936ed0

View file

@ -57,7 +57,11 @@ QT_BEGIN_NAMESPACE
inline static bool launch(const QUrl &url, const QString &client)
{
QString command = client + QLatin1Char(' ') + url.toEncoded();
#if !defined(QT_NO_PROCESS)
return (QProcess::startDetached(command));
#else
return (::system(command.toLocal8Bit().constData()) != -1);
#endif
}
static bool openDocument(const QUrl &url)