mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Code clean up
This commit is contained in:
parent
5dc79e67fc
commit
e0c2e3dd2c
1 changed files with 1 additions and 1 deletions
|
@ -702,7 +702,7 @@ void QBtSession::deleteTorrent(const QString &hash, bool delete_local_files) {
|
||||||
misc::safeRemove(uneeded_file);
|
misc::safeRemove(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().rmpath(parent_folder);
|
misc::removeEmptyFolder(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