mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Use non Qt 5.10 method of starting a detached process
This commit is contained in:
parent
49458e4fac
commit
1381214911
1 changed files with 5 additions and 2 deletions
|
@ -150,11 +150,14 @@ void OpenStreamlink(const QString &channelURL, const QString &quality, QStringLi
|
||||||
arguments << quality;
|
arguments << quality;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// This only works in Qt 5.10 and above
|
||||||
auto p = createStreamlinkProcess();
|
auto p = createStreamlinkProcess();
|
||||||
|
|
||||||
p->setArguments(arguments);
|
p->setArguments(arguments);
|
||||||
|
|
||||||
bool res = p->startDetached();
|
bool res = p->startDetached();
|
||||||
|
*/
|
||||||
|
|
||||||
|
bool res = QProcess::startDetached(getStreamlinkProgram(), arguments);
|
||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
showStreamlinkNotFoundError();
|
showStreamlinkNotFoundError();
|
||||||
|
|
Loading…
Reference in a new issue