mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-03 07:29:59 +08:00
Fix support for --no-splash command line argument
This commit is contained in:
parent
636e052faa
commit
965f7f5d26
@ -957,6 +957,9 @@ void MainWindow::processParams(const QStringList& params) {
|
|||||||
const bool useTorrentAdditionDialog = pref.useAdditionDialog();
|
const bool useTorrentAdditionDialog = pref.useAdditionDialog();
|
||||||
foreach (QString param, params) {
|
foreach (QString param, params) {
|
||||||
param = param.trimmed();
|
param = param.trimmed();
|
||||||
|
if (param.startsWith("--"))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (misc::isUrl(param)) {
|
if (misc::isUrl(param)) {
|
||||||
QBtSession::instance()->downloadFromUrl(param);
|
QBtSession::instance()->downloadFromUrl(param);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user