Merge pull request #1355 from yan12125/browser-improve-proxy-path-handling

Improve proxy path handling for the browser plugin
This commit is contained in:
Janek Bevendorff 2018-01-06 12:52:39 +01:00 committed by GitHub
commit 5fe18400c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,10 @@ void BrowserSettings::setUseCustomProxy(bool enabled)
QString BrowserSettings::customProxyLocation()
{
return config()->get("Browser/CustomProxyLocation", " ").toString();
if (!useCustomProxy()) {
return QString();
}
return config()->get("Browser/CustomProxyLocation", "").toString();
}
void BrowserSettings::setCustomProxyLocation(QString location)