From 10d6dd5a23971ed658a3676a11352f63aeafe5a7 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 21 May 2010 11:58:14 +0000 Subject: [PATCH] Torrent queue position now starts at 1 (closes #581130) --- src/qtorrenthandle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 4a131ec26..fce1974ae 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -387,7 +387,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 {