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>
This commit is contained in:
Jan Mulder 2017-07-25 11:44:30 +02:00 committed by Dirk Hohndel
parent adb4b66a05
commit fd03621a4b
3 changed files with 11 additions and 1 deletions

View file

@ -1307,6 +1307,7 @@ int QMLManager::timeThreshold() const
void QMLManager::setTimeThreshold(int time)
{
m_timeThreshold = time;
locationProvider->setGpsTimeThreshold(m_timeThreshold * 60);
emit timeThresholdChanged();
}