mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Save "resume data" when torrent storage is moved
This commit is contained in:
parent
26941a5b02
commit
0a8c2f75af
1 changed files with 5 additions and 2 deletions
|
@ -1343,8 +1343,10 @@ bool TorrentHandle::setCategory(const QString &category)
|
||||||
|
|
||||||
void TorrentHandle::move(QString path)
|
void TorrentHandle::move(QString path)
|
||||||
{
|
{
|
||||||
|
if (m_useAutoTMM) {
|
||||||
m_useAutoTMM = false;
|
m_useAutoTMM = false;
|
||||||
m_session->handleTorrentSavingModeChanged(this);
|
m_session->handleTorrentSavingModeChanged(this);
|
||||||
|
}
|
||||||
|
|
||||||
path = Utils::Fs::toUniformPath(path.trimmed());
|
path = Utils::Fs::toUniformPath(path.trimmed());
|
||||||
if (path.isEmpty())
|
if (path.isEmpty())
|
||||||
|
@ -1526,6 +1528,7 @@ void TorrentHandle::handleStorageMoved(const QString &newPath, const QString &er
|
||||||
LogMsg(tr("Successfully moved torrent: %1. New path: %2").arg(name(), newPath));
|
LogMsg(tr("Successfully moved torrent: %1. New path: %2").arg(name(), newPath));
|
||||||
|
|
||||||
updateStatus();
|
updateStatus();
|
||||||
|
saveResumeData();
|
||||||
|
|
||||||
while ((m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
while ((m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
||||||
m_moveFinishedTriggers.takeFirst()();
|
m_moveFinishedTriggers.takeFirst()();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue