- Cleaned torrent progress asserts

This commit is contained in:
Christophe Dumez
2007-08-28 19:22:05 +00:00
parent 63334ea6fb
commit 7921adbcf9
3 changed files with 3 additions and 8 deletions

View File

@@ -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 {