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;
|
||||
}
|
||||
|
||||
/*
|
||||
// This only works in Qt 5.10 and above
|
||||
auto p = createStreamlinkProcess();
|
||||
|
||||
p->setArguments(arguments);
|
||||
|
||||
bool res = p->startDetached();
|
||||
*/
|
||||
|
||||
bool res = QProcess::startDetached(getStreamlinkProgram(), arguments);
|
||||
|
||||
if (!res) {
|
||||
showStreamlinkNotFoundError();
|
||||
|
|
Loading…
Reference in a new issue