mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Torrent queue position now starts at 1 (closes #581130)
This commit is contained in:
parent
29e79dc54d
commit
10d6dd5a23
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue