aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefProxy.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 09:06:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 14:37:18 -0700
commit2ecbea3d24529b9776acb620c82af04a076b817f (patch)
tree0b0fc4eec864ff79db095d775341085cb1315895 /core/settings/qPrefProxy.cpp
parentdb57a633d587444a7196c8d4274b8f327e77ceba (diff)
downloadsubsurface-2ecbea3d24529b9776acb620c82af04a076b817f.tar.gz
qPref: use helper function to ensure key/name grouping
We had a couple of instances of names being incorrectly merged with their group, this should handle that better. It's a bit of a big hammer to use, but it seems to work (and it makes it easy to then git grep for cases that don't use the new helper function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefProxy.cpp')
-rw-r--r--core/settings/qPrefProxy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/settings/qPrefProxy.cpp b/core/settings/qPrefProxy.cpp
index a1b491c10..b9bd90ea9 100644
--- a/core/settings/qPrefProxy.cpp
+++ b/core/settings/qPrefProxy.cpp
@@ -25,14 +25,14 @@ void qPrefProxy::loadSync(bool doSync)
disk_proxy_user(doSync);
}
-HANDLE_PREFERENCE_BOOL(Proxy, "/proxy_auth", proxy_auth);
+HANDLE_PREFERENCE_BOOL(Proxy, "proxy_auth", proxy_auth);
-HANDLE_PREFERENCE_TXT(Proxy, "/proxy_host", proxy_host);
+HANDLE_PREFERENCE_TXT(Proxy, "proxy_host", proxy_host);
-HANDLE_PREFERENCE_TXT(Proxy, "/proxy_pass", proxy_pass);
+HANDLE_PREFERENCE_TXT(Proxy, "proxy_pass", proxy_pass);
-HANDLE_PREFERENCE_INT(Proxy, "/proxy_port", proxy_port);
+HANDLE_PREFERENCE_INT(Proxy, "proxy_port", proxy_port);
-HANDLE_PREFERENCE_INT_DEF(Proxy, "/proxy_type", proxy_type, QNetworkProxy::DefaultProxy);
+HANDLE_PREFERENCE_INT_DEF(Proxy, "proxy_type", proxy_type, QNetworkProxy::DefaultProxy);
-HANDLE_PREFERENCE_TXT(Proxy, "/proxy_user", proxy_user);
+HANDLE_PREFERENCE_TXT(Proxy, "proxy_user", proxy_user);