Torrent queue position now starts at 1 (closes #581130)

This commit is contained in:
Christophe Dumez
2010-05-21 12:02:22 +00:00
parent 1e67f0afa4
commit 5f49af5ade
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.2.8
- BUGFIX: ETA for finished torrent is now 0 instead of Infinite (closes #583704)
- BUGFIX: Fix sorting of ETA column when having infinite values (closes #583347)
- BUGFIX: Torrent queue position now starts at 1 (closes #581130)
- BUGFIX: Fix unicode issue in start seeding after torrent creation code
- COSMETIC: Fix torrent properties layout

View File

@@ -377,7 +377,9 @@ QStringList QTorrentHandle::files_path() const {
int QTorrentHandle::queue_position() const {
Q_ASSERT(h.is_valid());
return h.queue_position();
if(h.queue_position() < 0)
return -1;
return h.queue_position()+1;
}
int QTorrentHandle::num_uploads() const {