From 27c3e91014d65091b096b97680b95d1b130a284d Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Wed, 24 Sep 2014 21:53:19 -0400 Subject: [PATCH] qt: add proxy to options overridden if necessary. If proxy is disabled in the gui but enabled via the command line, it needs to be added to the override list. --- src/qt/optionsmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index bd747faeb6..21e390eb6d 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -119,6 +119,8 @@ void OptionsModel::Init() // Only try to set -proxy, if user has enabled fUseProxy if (settings.value("fUseProxy").toBool() && !SoftSetArg("-proxy", settings.value("addrProxy").toString().toStdString())) addOverriddenOption("-proxy"); + else if(!settings.value("fUseProxy").toBool() && !GetArg("-proxy", "").empty()) + addOverriddenOption("-proxy"); // Display if (!settings.contains("language"))