diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-24 11:18:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-24 11:18:20 -0700 |
commit | 9a62685f0be62e9a935ad050d6d5ef34b57b971b (patch) | |
tree | c65a4f6f15bdfb83052eaeba97b88c777f64ba70 /subsurface-core | |
parent | 6c9247b56b312b05ad52a674a7fa4bc30e4034ef (diff) | |
download | subsurface-9a62685f0be62e9a935ad050d6d5ef34b57b971b.tar.gz |
Read GPS location service thresholds from settings
We used to faithfully save them, but not restore them at start.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/qthelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index b3891298a..fae5e0130 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -1517,6 +1517,11 @@ void loadPreferences() GET_ENUM("cat2", taxonomy_category, geocoding.category[2]); s.endGroup(); + // GPS service time and distance thresholds + s.beginGroup("LocationService"); + GET_INT("time_threshold", time_threshold); + GET_INT("distance_threshold", distance_threshold); + s.endGroup(); } extern "C" bool isCloudUrl(const char *filename) |