Browse Source

Support raising window when UI is locked

adaptive-webui-19844
Nick Tiskov 12 years ago
parent
commit
5ca5441a48
  1. 10
      src/mainwindow.cpp

10
src/mainwindow.cpp

@ -961,11 +961,13 @@ void MainWindow::processParams(const QStringList& params) { @@ -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)) {

Loading…
Cancel
Save