mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
Make sure .unwanted parent is removed if empty (Closes #946826)
This commit is contained in:
parent
41b57a0878
commit
bcb29fb5fa
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ void QBtSession::deleteTorrent(const QString &hash, bool delete_local_files) {
|
||||||
QFile::remove(uneeded_file);
|
QFile::remove(uneeded_file);
|
||||||
const QString parent_folder = misc::branchPath(uneeded_file);
|
const QString parent_folder = misc::branchPath(uneeded_file);
|
||||||
qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder));
|
qDebug("Attempt to remove parent folder (if empty): %s", qPrintable(parent_folder));
|
||||||
QDir().rmdir(parent_folder);
|
QDir().rmpath(parent_folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remove it from torrent backup directory
|
// Remove it from torrent backup directory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue