mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Make sure the main windows has focus on start up
This commit is contained in:
@@ -296,6 +296,8 @@ int main(int argc, char *argv[]){
|
||||
torrentCmdLine.removeFirst();
|
||||
#ifndef DISABLE_GUI
|
||||
MainWindow window(0, torrentCmdLine);
|
||||
if(!no_splash)
|
||||
QObject::connect(splash, SIGNAL(destroyed()), &window, SLOT(raise()));
|
||||
QObject::connect(&app, SIGNAL(messageReceived(const QString&)),
|
||||
&window, SLOT(processParams(const QString&)));
|
||||
app.setActivationWindow(&window);
|
||||
|
||||
Reference in New Issue
Block a user