From b83c8e273587e82ea8d681fff638fc0fdde32255 Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 10 May 2018 18:18:12 +0200 Subject: [PATCH] this better compile --- src/util/streamlink.cpp | 9 +-------- src/widgets/split.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/util/streamlink.cpp b/src/util/streamlink.cpp index 7ea743ba0..fe1e9ec26 100644 --- a/src/util/streamlink.cpp +++ b/src/util/streamlink.cpp @@ -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(); diff --git a/src/widgets/split.cpp b/src/widgets/split.cpp index c186188c5..441a9a08d 100644 --- a/src/widgets/split.cpp +++ b/src/widgets/split.cpp @@ -129,11 +129,11 @@ Split::Split(QWidget *parent) this->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); this->managedConnect(altPressedStatusChanged, [this](bool status) { - if (status && this->isMouseOver) { - this->overlay->show(); - } else { - this->overlay->hide(); - } + // if (status && this->isMouseOver) { + // this->overlay->show(); + // } else { + // this->overlay->hide(); + // } }); }