mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -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
@@ -184,6 +184,8 @@ int main(int argc, char *argv[]) {
|
||||
qDebug("Passing program parameters to running instance...");
|
||||
qDebug("Message: %s", qPrintable(message));
|
||||
app.sendMessage(message);
|
||||
} else { // Raise main window
|
||||
app.sendMessage("qbt://show");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user