mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
committed by
Vladimir Golovnev (Glassez)
parent
72028be563
commit
4497ca4a0e
@@ -1745,8 +1745,12 @@ void TorrentImpl::moveStorage(const Path &newPath, const MoveStorageMode mode)
|
||||
|
||||
if (m_session->addMoveTorrentStorageJob(this, newPath, mode))
|
||||
{
|
||||
m_storageIsMoving = true;
|
||||
updateState();
|
||||
if (!m_storageIsMoving)
|
||||
{
|
||||
m_storageIsMoving = true;
|
||||
updateState();
|
||||
m_session->handleTorrentStorageMovingStateChanged(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1778,6 +1782,9 @@ void TorrentImpl::handleMoveStorageJobFinished(const Path &path, const bool hasO
|
||||
|
||||
if (!m_storageIsMoving)
|
||||
{
|
||||
updateState();
|
||||
m_session->handleTorrentStorageMovingStateChanged(this);
|
||||
|
||||
if (m_hasMissingFiles)
|
||||
{
|
||||
// it can be moved to the proper location
|
||||
|
||||
Reference in New Issue
Block a user