mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Merge pull request #9483 from sledgehammer999/save_queued_state_change
Save state change from queued to paused
This commit is contained in:
commit
6660184091
1 changed files with 6 additions and 0 deletions
|
@ -1347,6 +1347,12 @@ void TorrentHandle::pause()
|
||||||
|
|
||||||
m_nativeHandle.auto_managed(false);
|
m_nativeHandle.auto_managed(false);
|
||||||
m_nativeHandle.pause();
|
m_nativeHandle.pause();
|
||||||
|
|
||||||
|
// Libtorrent doesn't emit a torrent_paused_alert when the
|
||||||
|
// torrent is queued (no I/O)
|
||||||
|
// We test on the cached m_nativeStatus
|
||||||
|
if (isQueued())
|
||||||
|
m_session->handleTorrentPaused(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentHandle::resume(bool forced)
|
void TorrentHandle::resume(bool forced)
|
||||||
|
|
Loading…
Reference in a new issue