mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Revise getter function for torrrent queue position
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836 The WebAPI is not affected as a workaround is added.
This commit is contained in:
@@ -818,9 +818,7 @@ bool TorrentImpl::hasFilteredPieces() const
|
||||
|
||||
int TorrentImpl::queuePosition() const
|
||||
{
|
||||
if (m_nativeStatus.queue_position < lt::queue_position_t {0}) return 0;
|
||||
|
||||
return static_cast<int>(m_nativeStatus.queue_position) + 1;
|
||||
return static_cast<int>(m_nativeStatus.queue_position);
|
||||
}
|
||||
|
||||
QString TorrentImpl::error() const
|
||||
|
||||
Reference in New Issue
Block a user