From 92541b779c024ae5f3ba7981a598d60a030709fb Mon Sep 17 00:00:00 2001 From: Arnaud Demaiziere Date: Fri, 29 Jun 2007 14:23:15 +0000 Subject: [PATCH] fixed sort bug (made by chris) --- src/GUI.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index f05af7ab7..24686ddf5 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -491,12 +491,6 @@ void GUI::updateDlList(bool force){ torrent_status torrentStatus = h.status(); QString fileHash = QString(misc::toString(h.info_hash()).c_str()); int row = getRowFromHash(fileHash); - if(delayedSorting && BTSession.getUncheckedTorrentsList().indexOf(fileHash) != -1){ - if(torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking){ - BTSession.setTorrentFinishedChecking(fileHash); - } - } - row = getRowFromHash(fileHash); // List may have been sorted in the meantime if(BTSession.getTorrentsToPauseAfterChecking().indexOf(fileHash) != -1){ // Pause torrent if it finished checking and it is was supposed to be paused. // This is a trick to see the progress of the pause torrents on startup @@ -507,6 +501,12 @@ void GUI::updateDlList(bool force){ continue; } } + if(delayedSorting && BTSession.getUncheckedTorrentsList().indexOf(fileHash) != -1){ + if(torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking){ + BTSession.setTorrentFinishedChecking(fileHash); + } + } + row = getRowFromHash(fileHash); // List may have been sorted in the meantime if(h.is_paused()) continue; if(finishedSHAs.indexOf(fileHash) != -1) continue; if(row == -1){