From 965f7f5d26f87baec956d25a5bfe01868b44a86f Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 19 Jan 2013 16:22:47 +0200 Subject: [PATCH] Fix support for --no-splash command line argument --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 43a5383c0..5e16213b9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -957,6 +957,9 @@ void MainWindow::processParams(const QStringList& params) { const bool useTorrentAdditionDialog = pref.useAdditionDialog(); foreach (QString param, params) { param = param.trimmed(); + if (param.startsWith("--")) + continue; + if (misc::isUrl(param)) { QBtSession::instance()->downloadFromUrl(param); }else{