mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Fix compilation error
Attempt to fix permissions problem on Windows
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user