diff options
-rw-r--r-- | core/gpslocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp index 3336fe70c..76a4c718f 100644 --- a/core/gpslocation.cpp +++ b/core/gpslocation.cpp @@ -3,6 +3,7 @@ #include "qt-models/gpslistmodel.h" #include "core/pref.h" #include "core/qthelper.h" +#include "core/settings/qPrefLocationService.h" #include <time.h> #include <unistd.h> #include <QDebug> @@ -36,6 +37,9 @@ GpsLocation::GpsLocation(void (*showMsgCB)(const char *), QObject *parent) : userAgent = getUserAgent(); (void)getGpsSource(); loadFromStorage(); + + // register changes in time threshold + connect(qPrefLocationService::instance(), SIGNAL(qPrefLocationService::time_thresholdChanged()), this, SLOT(setGpsTimeThreshold(int seconds))); } GpsLocation *GpsLocation::instance() |