From d22b626a02767e1b23593591b1ebea5ec41980a2 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 28 Jul 2017 14:57:07 +0300 Subject: [PATCH] Fix temporary subfolder isn't deleted --- src/base/bittorrent/torrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 91af8f13c..313d56b32 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -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); }