From d3c8f2abaf46bc0996a32eff8168f3b2071c7983 Mon Sep 17 00:00:00 2001 From: Flavio Date: Fri, 18 Jul 2014 23:08:45 +0200 Subject: [PATCH] --stop-after-this cli switch --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3392ff2..acd5c17 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1484,6 +1484,8 @@ void MainWindow::dragEnterEvent(QDragEnterEvent *event) { } void MainWindow::dropEvent(QDropEvent *event) { + if (!toolbarSearch->isEnabled()) return; + QList urls = event->mimeData()->urls(); if (urls.isEmpty()) return; @@ -1582,6 +1584,8 @@ void MainWindow::messageReceived(const QString &message) { if (skipAct->isEnabled()) skipAct->trigger(); } else if (message == QLatin1String("--previous")) { if (skipBackwardAct->isEnabled()) skipBackwardAct->trigger(); + } else if (message == QLatin1String("--stop-after-this")) { + The::globalActions()->value("stopafterthis")->toggle(); } else if (message.startsWith("--")) { MainWindow::printHelp(); } else if (!message.isEmpty()) { -- 2.39.5