mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Fix updated save path not saved for paused torrents
This commit is contained in:
parent
7d860b6c24
commit
9893a415c0
@ -1789,6 +1789,9 @@ void TorrentHandle::handleFileRenamedAlert(const lt::file_renamed_alert *p)
|
|||||||
--m_renameCount;
|
--m_renameCount;
|
||||||
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
||||||
m_moveFinishedTriggers.takeFirst()();
|
m_moveFinishedTriggers.takeFirst()();
|
||||||
|
|
||||||
|
if (isPaused() && (m_renameCount == 0))
|
||||||
|
saveResumeData(); // otherwise the new path will not be saved
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentHandle::handleFileRenameFailedAlert(const lt::file_rename_failed_alert *p)
|
void TorrentHandle::handleFileRenameFailedAlert(const lt::file_rename_failed_alert *p)
|
||||||
@ -1804,6 +1807,9 @@ void TorrentHandle::handleFileRenameFailedAlert(const lt::file_rename_failed_ale
|
|||||||
--m_renameCount;
|
--m_renameCount;
|
||||||
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
||||||
m_moveFinishedTriggers.takeFirst()();
|
m_moveFinishedTriggers.takeFirst()();
|
||||||
|
|
||||||
|
if (isPaused() && (m_renameCount == 0))
|
||||||
|
saveResumeData(); // otherwise the new path will not be saved
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentHandle::handleFileCompletedAlert(const lt::file_completed_alert *p)
|
void TorrentHandle::handleFileCompletedAlert(const lt::file_completed_alert *p)
|
||||||
|
Loading…
Reference in New Issue
Block a user