From: Flavio Date: Thu, 28 Jun 2012 15:47:31 +0000 (+0200) Subject: Fixed command line X-Git-Tag: 1.8~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8b1a2a67bbe81f9630200d6471cc4576523915a;p=minitube Fixed command line --- 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);