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>
This commit is contained in:
Dirk Hohndel 2018-09-07 09:06:00 -07:00
parent db57a633d5
commit 2ecbea3d24
15 changed files with 157 additions and 149 deletions

View file

@ -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);