mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
fixed sort bug (made by chris)
This commit is contained in:
parent
f5a4190e4b
commit
92541b779c
1 changed files with 6 additions and 6 deletions
12
src/GUI.cpp
12
src/GUI.cpp
|
@ -491,12 +491,6 @@ void GUI::updateDlList(bool force){
|
||||||
torrent_status torrentStatus = h.status();
|
torrent_status torrentStatus = h.status();
|
||||||
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
||||||
int row = getRowFromHash(fileHash);
|
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){
|
if(BTSession.getTorrentsToPauseAfterChecking().indexOf(fileHash) != -1){
|
||||||
// Pause torrent if it finished checking and it is was supposed to be paused.
|
// 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
|
// This is a trick to see the progress of the pause torrents on startup
|
||||||
|
@ -507,6 +501,12 @@ void GUI::updateDlList(bool force){
|
||||||
continue;
|
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(h.is_paused()) continue;
|
||||||
if(finishedSHAs.indexOf(fileHash) != -1) continue;
|
if(finishedSHAs.indexOf(fileHash) != -1) continue;
|
||||||
if(row == -1){
|
if(row == -1){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue