1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Support raising window when UI is locked

This commit is contained in:
Nick Tiskov 2013-01-22 17:36:14 +04:00
parent 88960556e3
commit 5ca5441a48

View File

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