From a8b1a2a67bbe81f9630200d6471cc4576523915a Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 28 Jun 2012 17:47:31 +0200 Subject: [PATCH] Fixed command line --- src/MainWindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index c0c880a..20bd4a7 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1384,10 +1384,13 @@ void MainWindow::restore() { } void MainWindow::messageReceived(const QString &message) { - if (message == "--toggle-playing" && pauseAct->isEnabled()) pauseAct->trigger(); - else if (message == "--next" && skipAct->isEnabled()) skipAct->trigger(); - else if (message == "--previous" && skipBackwardAct->isEnabled()) skipBackwardAct->trigger(); - else if (!message.isEmpty()) { + if (message == "--toggle-playing") { + if (pauseAct->isEnabled()) pauseAct->trigger(); + } else if (message == "--next") { + if (skipAct->isEnabled()) skipAct->trigger(); + } else if (message == "--previous") { + if (skipBackwardAct->isEnabled()) skipBackwardAct->trigger(); + } else if (!message.isEmpty()) { SearchParams *searchParams = new SearchParams(); searchParams->setKeywords(message); showMedia(searchParams); -- 2.39.5