mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Cleaned torrent progress asserts
This commit is contained in:
@@ -55,7 +55,9 @@ QString QTorrentHandle::name() const {
|
||||
|
||||
float QTorrentHandle::progress() const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
return h.status().progress;
|
||||
float progress = h.status().progress;
|
||||
Q_ASSERT(progress >= 0. && progress <= 1.);
|
||||
return progress;
|
||||
}
|
||||
|
||||
QString QTorrentHandle::current_tracker() const {
|
||||
|
||||
Reference in New Issue
Block a user