mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix status of torrents without metadata
This commit is contained in:
parent
7f47ac11f1
commit
47e9c5ac08
1 changed files with 2 additions and 2 deletions
|
@ -777,10 +777,10 @@ void TorrentHandleImpl::updateState()
|
||||||
{
|
{
|
||||||
if (isPaused())
|
if (isPaused())
|
||||||
m_state = TorrentState::PausedDownloading;
|
m_state = TorrentState::PausedDownloading;
|
||||||
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata)
|
|
||||||
m_state = TorrentState::DownloadingMetadata;
|
|
||||||
else if (m_session->isQueueingSystemEnabled() && isQueued())
|
else if (m_session->isQueueingSystemEnabled() && isQueued())
|
||||||
m_state = TorrentState::QueuedDownloading;
|
m_state = TorrentState::QueuedDownloading;
|
||||||
|
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata) // must come after queue check
|
||||||
|
m_state = TorrentState::DownloadingMetadata;
|
||||||
else if (isForced())
|
else if (isForced())
|
||||||
m_state = TorrentState::ForcedDownloading;
|
m_state = TorrentState::ForcedDownloading;
|
||||||
else if (m_nativeStatus.download_payload_rate > 0)
|
else if (m_nativeStatus.download_payload_rate > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue