mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Ask for exit confirmation only if the download list is not empty
This commit is contained in:
@@ -652,12 +652,12 @@ void GUI::closeEvent(QCloseEvent *e){
|
||||
e->ignore();
|
||||
return;
|
||||
}
|
||||
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool()){
|
||||
if(settings.value("Options/Misc/Behaviour/ConfirmOnExit", true).toBool() && nbTorrents != 0){
|
||||
show();
|
||||
showNormal();
|
||||
if(QMessageBox::question(this,
|
||||
tr("Are you sure you want to quit?")+" -- "+tr("qBittorrent"),
|
||||
tr("Are you sure you want to quit qBittorrent?"),
|
||||
tr("The download list is not empty.\nAre you sure you want to quit qBittorrent?"),
|
||||
tr("&Yes"), tr("&No"),
|
||||
QString(), 0, 1)){
|
||||
e->ignore();
|
||||
|
||||
Reference in New Issue
Block a user