diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index c1825c01e..fca187a47 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -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) { diff --git a/src/options_imp.cpp b/src/options_imp.cpp index a19ab2384..3777f8257 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -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){ 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()));