diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 1395b74a4..101162f98 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -750,7 +750,7 @@ void Bittorrent::deleteTorrent(QString hash, bool delete_local_files) { filters << hash+".*"; const QStringList files = torrentBackup.entryList(filters, QDir::Files, QDir::Unsorted); foreach(const QString &file, files) { - torrentBackup.remove(file); + misc::safeRemove(torrentBackup.absoluteFilePath(file)); } TorrentPersistentData::deletePersistentData(hash); // Remove tracker errors