mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Make sure .unwanted parent is removed if empty (Closes #946826)
(cherry picked from commit bcb29fb5fa)
This commit is contained in:
@@ -850,7 +850,7 @@ void QBtSession::deleteTorrent(const QString &hash, bool delete_local_files) {
|
||||
misc::safeRemove(uneeded_file);
|
||||
const QString parent_folder = misc::branchPath(uneeded_file);
|
||||
qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder));
|
||||
misc::removeEmptyFolder(parent_folder);
|
||||
QDir().rmpath(parent_folder);
|
||||
}
|
||||
}
|
||||
// Remove it from torrent backup directory
|
||||
|
||||
Reference in New Issue
Block a user