1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-30 16:34:16 +00:00

Bring mainWindow to foreground when asking for exit confirmation

This commit is contained in:
Christophe Dumez 2007-03-29 18:46:50 +00:00
parent 81eee7bba2
commit 0ebdd34df3

View File

@ -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?"),