mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-10 13:54:23 +00:00
After files relocate, don't remove the old folder even if it is empty.
This commit is contained in:
parent
fa45ba102c
commit
a2bb947dcc
@ -1367,13 +1367,6 @@ void TorrentHandle::handleStorageMovedAlert(libtorrent::storage_moved_alert *p)
|
|||||||
m_session->handleTorrentSavePathChanged(this);
|
m_session->handleTorrentSavePathChanged(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to remove old folder if empty
|
|
||||||
QDir oldSaveDir(Utils::Fs::fromNativePath(m_oldPath));
|
|
||||||
if (oldSaveDir != QDir(m_session->defaultSavePath())) {
|
|
||||||
qDebug("Attempting to remove %s", qPrintable(m_oldPath));
|
|
||||||
QDir().rmpath(m_oldPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
while (!isMoveInProgress() && (m_renameCount == 0) && !m_moveFinishedTriggers.isEmpty())
|
||||||
m_moveFinishedTriggers.takeFirst()();
|
m_moveFinishedTriggers.takeFirst()();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user