Bring mainWindow to foreground when asking for exit confirmation

This commit is contained in:
Christophe Dumez
2007-03-29 18:49:36 +00:00
parent df06fcac03
commit b87882dd59
3 changed files with 3 additions and 1 deletions

View File

@@ -814,6 +814,7 @@ void GUI::closeEvent(QCloseEvent *e){
return;
}
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool()){
show();
if(QMessageBox::question(this,
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
tr("Are you sure you want to quit qBittorrent?"),