}
void MainWindow::dropEvent(QDropEvent *event) {
+ if (!toolbarSearch->isEnabled()) return;
+
QList<QUrl> urls = event->mimeData()->urls();
if (urls.isEmpty())
return;
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()) {
msg += "Skip to the next video.\n";
msg += " --previous\t\t";
msg += "Go back to the previous video.\n";
+ msg += " --stop-after-this\t";
+ msg += "Stop playback at the end of the video.\n";
std::cout << msg.toLocal8Bit().data();
}