mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Added an assert to check that progress value is < 100%
- Modified a test due to a bug in libtorrent for #133480
This commit is contained in:
parent
5066819c58
commit
7030f85826
1 changed files with 2 additions and 1 deletions
|
@ -173,7 +173,8 @@ void FinishedTorrents::updateFinishedList(){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(h.is_paused()) continue;
|
if(h.is_paused()) continue;
|
||||||
if(torrentStatus.state == torrent_status::downloading || (torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking && torrentStatus.progress != 1.)) {
|
Q_ASSERT(torrentStatus.progress <= 1.);
|
||||||
|
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!
|
// What are you doing here? go back to download tab!
|
||||||
qDebug("Info: a torrent was moved from finished to download tab");
|
qDebug("Info: a torrent was moved from finished to download tab");
|
||||||
deleteFromFinishedList(hash);
|
deleteFromFinishedList(hash);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue