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

@ -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
{