summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-25 11:44:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-25 22:12:19 +0900
commitfd03621a4b1e82c218dddbc7e833838ef3fdf7be (patch)
treeba33425f62edc73f738e4f4c832560ce28b273b6 /mobile-widgets
parentadb4b66a055ca809b0a78c08f37d7feefe44e947 (diff)
downloadsubsurface-fd03621a4b1e82c218dddbc7e833838ef3fdf7be.tar.gz
Mobile: honour location service time threshold
Independ of the settings, the threshold to reset the GPS data was hard coded to 5 minutes. Now, honour the entered (and updated during a session) time to refresh the GPS data in the location service. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index cc9b1356d..cb594a13d 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1307,6 +1307,7 @@ int QMLManager::timeThreshold() const
void QMLManager::setTimeThreshold(int time)
{
m_timeThreshold = time;
+ locationProvider->setGpsTimeThreshold(m_timeThreshold * 60);
emit timeThresholdChanged();
}