update the daemon setting every x time
authorRodrigo Linfati <rodrigo@linfati.cl>
Wed, 26 Jan 2011 15:59:34 +0000 (16:59 +0100)
committerRodrigo Linfati <rodrigo@linfati.cl>
Wed, 26 Jan 2011 15:59:34 +0000 (16:59 +0100)
src/daemon.cpp
src/latitude.cpp

index aebf1ec..481c530 100644 (file)
@@ -17,6 +17,7 @@ Daemon::Daemon(QObject *parent) : QObject(parent) {
 
 void Daemon::set() {
     qDebug() << "Daemon: set";
+    set_config();
     glatitude->update(gps->get_lat(),
                       gps->get_lon(),
                       gps->get_acc());
index b1b89c1..7708be8 100644 (file)
@@ -43,6 +43,7 @@ LatitudeGUI::LatitudeGUI(QMainWindow *parent) : QMainWindow(parent) {
 
 void LatitudeGUI::set() {
     qDebug() << "LatitudeGUI: set";
+    set_config();
     glatitude->update(gps->get_lat(),
                       gps->get_lon(),
                       gps->get_acc());