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
commit 25c6d8bf6b
6 changed files with 66 additions and 27 deletions

View file

@ -832,6 +832,16 @@ void Preferences::setForceProxy(bool enabled)
setValue("Preferences/Connection/ProxyForce", enabled);
}
void Preferences::setProxyOnlyForTorrents(bool enabled)
{
setValue("Preferences/Connection/ProxyOnlyForTorrents", enabled);
}
bool Preferences::isProxyOnlyForTorrents() const
{
return value("Preferences/Connection/ProxyOnlyForTorrents", false).toBool();
}
// Bittorrent options
int Preferences::getMaxConnecs() const
{