mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Raise main window when starting another instance w/o params
This commit is contained in:
committed by
Christophe Dumez
parent
42b1dffbb9
commit
47c7ffba99
@@ -960,6 +960,14 @@ void MainWindow::processParams(const QStringList& params) {
|
||||
if (misc::isUrl(param)) {
|
||||
QBtSession::instance()->downloadFromUrl(param);
|
||||
}else{
|
||||
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) {
|
||||
if(!ui_locked) {
|
||||
show();
|
||||
activateWindow();
|
||||
raise();
|
||||
}
|
||||
return; // Do not process more params
|
||||
}
|
||||
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) {
|
||||
qDebug("Converting bc link to magnet link");
|
||||
param = misc::bcLinkToMagnet(param);
|
||||
|
||||
Reference in New Issue
Block a user