diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-07 09:06:00 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-07 14:37:18 -0700 |
commit | 2ecbea3d24529b9776acb620c82af04a076b817f (patch) | |
tree | 0b0fc4eec864ff79db095d775341085cb1315895 /core/settings/qPrefLocationService.cpp | |
parent | db57a633d587444a7196c8d4274b8f327e77ceba (diff) | |
download | subsurface-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/qPrefLocationService.cpp')
-rw-r--r-- | core/settings/qPrefLocationService.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/qPrefLocationService.cpp b/core/settings/qPrefLocationService.cpp index 01f4ffb9a..7c9bc8378 100644 --- a/core/settings/qPrefLocationService.cpp +++ b/core/settings/qPrefLocationService.cpp @@ -19,6 +19,6 @@ void qPrefLocationService::loadSync(bool doSync) disk_time_threshold(doSync); } -HANDLE_PREFERENCE_INT(LocationService, "/distance_threshold", distance_threshold); +HANDLE_PREFERENCE_INT(LocationService, "distance_threshold", distance_threshold); -HANDLE_PREFERENCE_INT(LocationService, "/time_threshold", time_threshold); +HANDLE_PREFERENCE_INT(LocationService, "time_threshold", time_threshold); |