Browse Source

Fix temporary subfolder isn't deleted

adaptive-webui-19844
Vladimir Golovnev (Glassez) 7 years ago committed by Vladimir Golovnev
parent
commit
d22b626a02
  1. 2
      src/base/bittorrent/torrenthandle.cpp

2
src/base/bittorrent/torrenthandle.cpp

@ -1498,7 +1498,7 @@ void TorrentHandle::handleStorageMovedAlert(libtorrent::storage_moved_alert *p) @@ -1498,7 +1498,7 @@ void TorrentHandle::handleStorageMovedAlert(libtorrent::storage_moved_alert *p)
}
qDebug("Torrent is successfully moved from %s to %s", qPrintable(m_oldPath), qPrintable(m_newPath));
if (m_oldPath == m_session->torrentTempPath(hash())) {
if (QDir(m_oldPath) == QDir(m_session->torrentTempPath(hash()))) {
qDebug() << "Removing torrent temp folder:" << m_oldPath;
Utils::Fs::smartRemoveEmptyFolderTree(m_oldPath);
}

Loading…
Cancel
Save