mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
I forgot that system() doesn ot fork()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
4485dbdef4
commit
273e936ed0
1 changed files with 4 additions and 0 deletions
|
@ -57,7 +57,11 @@ QT_BEGIN_NAMESPACE
|
||||||
inline static bool launch(const QUrl &url, const QString &client)
|
inline static bool launch(const QUrl &url, const QString &client)
|
||||||
{
|
{
|
||||||
QString command = client + QLatin1Char(' ') + url.toEncoded();
|
QString command = client + QLatin1Char(' ') + url.toEncoded();
|
||||||
|
#if !defined(QT_NO_PROCESS)
|
||||||
|
return (QProcess::startDetached(command));
|
||||||
|
#else
|
||||||
return (::system(command.toLocal8Bit().constData()) != -1);
|
return (::system(command.toLocal8Bit().constData()) != -1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool openDocument(const QUrl &url)
|
static bool openDocument(const QUrl &url)
|
||||||
|
|
Loading…
Add table
Reference in a new issue