1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 19:34:17 +00:00

Auto-disable to auto-shutdown feature

This commit is contained in:
Christophe Dumez 2010-10-21 16:54:10 +00:00
parent fc3ae51122
commit 46b75b760f

View File

@ -2068,6 +2068,8 @@ void QBtSession::readAlerts() {
if(will_shutdown) {
if(Preferences::shutdownWhenDownloadsComplete()) {
qDebug("Preparing for auto-shutdown because all downloads are complete!");
// Disabling it for next time
Preferences::setShutdownWhenDownloadsComplete(false);
#if LIBTORRENT_VERSION_MINOR < 15
saveDHTEntry();
#endif