Browse Source

Merge pull request #12436 from glassez/fix-savepath

Save "resume data" when torrent storage is moved
adaptive-webui-19844
Vladimir Golovnev 5 years ago committed by GitHub
parent
commit
fe81633403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/base/bittorrent/torrenthandle.cpp

3
src/base/bittorrent/torrenthandle.cpp

@ -1343,8 +1343,10 @@ bool TorrentHandle::setCategory(const QString &category) @@ -1343,8 +1343,10 @@ bool TorrentHandle::setCategory(const QString &category)
void TorrentHandle::move(QString path)
{
if (m_useAutoTMM) {
m_useAutoTMM = false;
m_session->handleTorrentSavingModeChanged(this);
}
path = Utils::Fs::toUniformPath(path.trimmed());
if (path.isEmpty())
@ -1526,6 +1528,7 @@ void TorrentHandle::handleStorageMoved(const QString &newPath, const QString &er @@ -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));
updateStatus();
saveResumeData();
while ((m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
m_moveFinishedTriggers.takeFirst()();

Loading…
Cancel
Save