Permalink
Browse files

Fixed "wake" argument on Windows.

  • Loading branch information...
1 parent dd91622 commit c73d33211a990432384c353ac9b8a05c770beac6 @ckaiser committed Mar 26, 2016
Showing with 1 addition and 7 deletions.
  1. +1 −7 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;
}

0 comments on commit c73d332

Please sign in to comment.