mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:39:39 +03:00
Bring mainWindow to foreground when asking for exit confirmation
This commit is contained in:
parent
81eee7bba2
commit
0ebdd34df3
1 changed files with 1 additions and 0 deletions
|
@ -656,6 +656,7 @@ void GUI::closeEvent(QCloseEvent *e){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool()){
|
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool()){
|
||||||
|
show();
|
||||||
if(QMessageBox::question(this,
|
if(QMessageBox::question(this,
|
||||||
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
|
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
|
||||||
tr("Are you sure you want to quit qBittorrent?"),
|
tr("Are you sure you want to quit qBittorrent?"),
|
||||||
|
|
Loading…
Reference in a new issue