mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- improved some asserts for progress checking
This commit is contained in:
parent
7030f85826
commit
2bf0aba48a
2 changed files with 5 additions and 5 deletions
|
@ -173,7 +173,7 @@ void FinishedTorrents::updateFinishedList(){
|
|||
continue;
|
||||
}
|
||||
if(h.is_paused()) continue;
|
||||
Q_ASSERT(torrentStatus.progress <= 1.);
|
||||
Q_ASSERT(torrentStatus.progress <= 1. && torrentStatus.progress >= 0.);
|
||||
if(torrentStatus.state == torrent_status::downloading || (torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking && torrentStatus.progress < 1.)) {
|
||||
// What are you doing here? go back to download tab!
|
||||
qDebug("Info: a torrent was moved from finished to download tab");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue