From 5f49af5adee3d087a650e1f5cb68883902083464 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 21 May 2010 12:02:22 +0000 Subject: [PATCH] Torrent queue position now starts at 1 (closes #581130) --- Changelog | 1 + src/qtorrenthandle.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 0c1c80f99..2abb797eb 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Unreleased - Christophe Dumez - 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 diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 4d16ed451..dc6aaed1d 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -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 {