Add an option to allow the use of proxies only for torrents

Closes #2701.
This commit is contained in:
Gabriele 2015-08-03 14:27:47 +02:00
parent e728710430
commit 1c8abd5c3b
6 changed files with 62 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());