this better compile

This commit is contained in:
fourtf
2018-05-10 18:18:12 +02:00
parent 5fcf42f1fc
commit b83c8e2735
2 changed files with 6 additions and 13 deletions
+1 -8
View File
@@ -150,14 +150,7 @@ 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);
bool res = QProcess::startDetached(getStreamlinkProgram() + " " + QString(arguments.join(' ')));
if (!res) {
showStreamlinkNotFoundError();