From 1eca139db9f23eb0059d6ad559c6f33ae2d1fd86 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 3 Feb 2010 19:44:19 +0000 Subject: [PATCH] Fix new "Automatically recheck torrents on completion" feature (would keep on rechecking) --- src/bittorrent.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 57959390a..b5d6bdf1e 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1809,8 +1809,6 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { if(h.is_valid()) { emit finishedTorrent(h); QString hash = h.hash(); - // Remember finished state - TorrentPersistentData::saveSeedStatus(h); #ifdef LIBTORRENT_0_15 // Remove .!qB extension if necessary if(appendqBExtension) @@ -1846,8 +1844,14 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { } } // Recheck if the user asked to - if(Preferences::recheckTorrentsOnCompletion()) + if(Preferences::recheckTorrentsOnCompletion() && !TorrentPersistentData::isSeed(hash)) { + // Remember finished state + TorrentPersistentData::saveSeedStatus(h); h.force_recheck(); + } else { + // Remember finished state + TorrentPersistentData::saveSeedStatus(h); + } qDebug("Received finished alert for %s", h.name().toLocal8Bit().data()); } }