Fix compilation error

Attempt to fix permissions problem on Windows
This commit is contained in:
Christophe Dumez
2010-07-24 19:13:15 +00:00
parent 9503d9b024
commit fa6da97cf9
2 changed files with 3 additions and 4 deletions

View File

@@ -1226,6 +1226,9 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
QFile::remove(newFile);
// Copy it to torrentBackup directory
QFile::copy(file, newFile);
// Make sure the permissions are ok
QFile nf(newFile);
nf.setPermissions(nf.permissions()|QFile::ReadOwner|QFile::WriteOwner|QFile::ReadUser|QFile::WriteUser);
}
// Copy the torrent file to the export folder
if(torrentExport) {