Merge pull request #3561 from pmzqla/proxy-torrent

Add an option to allow the use of proxies only for torrents
This commit is contained in:
sledgehammer999
2015-08-30 12:38:16 -05:00
6 changed files with 66 additions and 27 deletions

View File

@@ -110,7 +110,7 @@ void DownloadManager::applyProxySettings()
QNetworkProxy proxy;
const Preferences* const pref = Preferences::instance();
if (pref->isProxyEnabled()) {
if (pref->isProxyEnabled() && !pref->isProxyOnlyForTorrents()) {
// Proxy enabled
proxy.setHostName(pref->getProxyIp());
proxy.setPort(pref->getProxyPort());