Fix permission problems on Windows (closes #1020227)

This commit is contained in:
Christophe Dumez
2012-07-05 19:10:13 +03:00
parent a85ddada25
commit 90373897d6
9 changed files with 59 additions and 57 deletions

View File

@@ -433,7 +433,7 @@ void HttpConnection::respondCommand(const QString& command) {
delete tmpfile;
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
// Clean up
QFile::remove(filePath);
fsutils::forceRemove(filePath);
} else {
std::cerr << "I/O Error: Could not create temporary file" << std::endl;
delete tmpfile;