- Window can now stay maximized on exit

This commit is contained in:
Christophe Dumez 2007-04-04 14:53:00 +00:00
parent a0743c0713
commit 81d05a67b3
3 changed files with 4 additions and 2 deletions

View file

@ -675,7 +675,8 @@ void GUI::closeEvent(QCloseEvent *e){
}
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool() && nbTorrents != 0){
show();
showNormal();
if(!isMaximized())
showNormal();
if(QMessageBox::question(this,
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
tr("The download list is not empty.\nAre you sure you want to quit qBittorrent?"),