Skip to content

Commit

Permalink
Fixed "wake" argument on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaiser committed Mar 26, 2016
1 parent dd91622 commit c73d332
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lightscreenwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c73d332

Please sign in to comment.