Bring mainWindow to foreground when asking for exit confirmation

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

View file

@ -27,6 +27,7 @@
- BUGFIX: Let libtorrent store the torrent handles (save memory) - BUGFIX: Let libtorrent store the torrent handles (save memory)
- BUGFIX: Set DHT Port only when DHT is enabled - BUGFIX: Set DHT Port only when DHT is enabled
- BUGFIX: Made ipfilter.dat parser less sensitive to errors - BUGFIX: Made ipfilter.dat parser less sensitive to errors
- BUGFIX: Bring main window to foreground when asking for exit confirmation
- I18N: Added Danish translation - I18N: Added Danish translation
- I18N: Better internationalization thanks to dynamic text support - I18N: Better internationalization thanks to dynamic text support
- COSMETIC: Replaced OSD messages by Qt4.2 systray messages - COSMETIC: Replaced OSD messages by Qt4.2 systray messages

View file

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

View file

@ -11,7 +11,7 @@ TARGET = qbittorrent
CONFIG += qt thread x11 CONFIG += qt thread x11
# Update this VERSION for each release # Update this VERSION for each release
DEFINES += VERSION=\\\"v0.9.0rc1\\\" DEFINES += VERSION=\\\"v0.9.0rc2\\\"
DEFINES += VERSION_MAJOR=0 DEFINES += VERSION_MAJOR=0
DEFINES += VERSION_MINOR=9 DEFINES += VERSION_MINOR=9
DEFINES += VERSION_BUGFIX=0 DEFINES += VERSION_BUGFIX=0