- window can now stay maximized on exit

This commit is contained in:
Christophe Dumez
2007-04-04 14:56:40 +00:00
parent ecede8b53e
commit cb08280180
2 changed files with 5 additions and 1 deletions

View File

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