summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qmlmanager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index e9682d623..1d68dc3a7 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -8,6 +8,7 @@
#include <QTextDocument>
#include "qt-models/divelistmodel.h"
+#include <gpslistmodel.h>
#include "divelist.h"
#include "pref.h"
#include "qthelper.h"
@@ -511,18 +512,20 @@ void QMLManager::sendGpsData()
void QMLManager::downloadGpsData()
{
locationProvider->downloadFromServer();
- locationProvider->updateModel();
+ populateGpsData();
+
}
void QMLManager::populateGpsData()
{
- locationProvider->updateModel();
+ if (GpsListModel::instance())
+ GpsListModel::instance()->update();
}
void QMLManager::clearGpsData()
{
locationProvider->clearGpsData();
- locationProvider->updateModel();
+ populateGpsData();
}
QString QMLManager::logText() const