From c73d33211a990432384c353ac9b8a05c770beac6 Mon Sep 17 00:00:00 2001 From: Christian Kaiser Date: Sat, 26 Mar 2016 20:21:11 -0300 Subject: [PATCH] Fixed "wake" argument on Windows. --- lightscreenwindow.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lightscreenwindow.cpp b/lightscreenwindow.cpp index b45d8b7..cb030bd 100644 --- a/lightscreenwindow.cpp +++ b/lightscreenwindow.cpp @@ -346,12 +346,6 @@ void LightscreenWindow::messageClicked() void LightscreenWindow::executeArgument(const QString &message) { - if (message.contains(' ')) { - foreach (QString argument, message.split(' ')) { - executeArgument(argument); - } - } - if (message == "--wake") { show(); os::setForegroundWindow(this); @@ -380,7 +374,7 @@ void LightscreenWindow::executeArgument(const QString &message) void LightscreenWindow::executeArguments(const QStringList arguments) { // If we just have the default argument, call "--wake" - if (arguments.count() == 1 && (arguments.at(0) == qApp->arguments().at(0) || arguments.at(0) == QFileInfo(qApp->applicationFilePath()).fileName())) { + if (arguments.count() == 1 && (arguments.at(0) == qApp->arguments().at(0) || arguments.at(0).contains(QFileInfo(qApp->applicationFilePath()).fileName()))) { executeArgument("--wake"); return; }