]> git.sur5r.net Git - minitube/commitdiff
Fixed command line
authorFlavio <flavio@odisseo.local>
Thu, 28 Jun 2012 15:47:31 +0000 (17:47 +0200)
committerFlavio <flavio@odisseo.local>
Thu, 28 Jun 2012 15:47:31 +0000 (17:47 +0200)
src/MainWindow.cpp

index c0c880ad8f7221125c40986f74affbc5f6deffca..20bd4a75a53ed21c6a6ebe0b2dd113b6679e50f7 100644 (file)
@@ -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);