Browse Source

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

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
10d6dd5a23
  1. 4
      src/qtorrenthandle.cpp

4
src/qtorrenthandle.cpp

@ -387,7 +387,9 @@ QStringList QTorrentHandle::files_path() const {
int QTorrentHandle::queue_position() const { int QTorrentHandle::queue_position() const {
Q_ASSERT(h.is_valid()); 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 { int QTorrentHandle::num_uploads() const {

Loading…
Cancel
Save