|
|
@ -961,11 +961,13 @@ void MainWindow::processParams(const QStringList& params) { |
|
|
|
QBtSession::instance()->downloadFromUrl(param); |
|
|
|
QBtSession::instance()->downloadFromUrl(param); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) { |
|
|
|
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) { |
|
|
|
if(!ui_locked) { |
|
|
|
if(ui_locked) { |
|
|
|
show(); |
|
|
|
if(!unlockUI()) |
|
|
|
activateWindow(); |
|
|
|
return; |
|
|
|
raise(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
show(); |
|
|
|
|
|
|
|
activateWindow(); |
|
|
|
|
|
|
|
raise(); |
|
|
|
return; // Do not process more params
|
|
|
|
return; // Do not process more params
|
|
|
|
} |
|
|
|
} |
|
|
|
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) { |
|
|
|
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) { |
|
|
|