Use non Qt 5.10 method of starting a detached process
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user