Browse Source

Fix compilation error

Attempt to fix permissions problem on Windows
adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fa6da97cf9
  1. 3
      src/bittorrent.cpp
  2. 4
      src/options_imp.cpp

3
src/bittorrent.cpp

@ -1226,6 +1226,9 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr @@ -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) {

4
src/options_imp.cpp

@ -169,7 +169,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){ @@ -169,7 +169,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
connect(checkMaxConnecsPerTorrent, SIGNAL(toggled(bool)), this, SLOT(enableMaxConnecsLimitPerTorrent(bool)));
connect(checkMaxUploadsPerTorrent, SIGNAL(toggled(bool)), this, SLOT(enableMaxUploadsLimitPerTorrent(bool)));
connect(checkMaxRatio, SIGNAL(toggled(bool)), this, SLOT(enableMaxRatio(bool)));
connect(comboPeerID, SIGNAL(currentIndexChanged(int)), this, SLOT(enableSpoofingSettings(int)));
// Proxy tab
connect(comboProxyType_http, SIGNAL(currentIndexChanged(int)),this, SLOT(enableHTTPProxy(int)));
connect(checkProxyAuth_http, SIGNAL(toggled(bool)), this, SLOT(enableHTTPProxyAuth(bool)));
@ -226,9 +225,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){ @@ -226,9 +225,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
connect(checkDifferentDHTPort, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(spinDHTPort, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
connect(checkLSD, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(comboPeerID, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
connect(client_version, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
connect(client_build, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
connect(comboEncryption, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
connect(checkMaxRatio, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
connect(spinMaxRatio, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));

Loading…
Cancel
Save