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

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