diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 6243bc3ea..3cc8ed0c5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1572,11 +1572,11 @@ QString QMLManager::getCurrentPosition() void QMLManager::applyGpsData() { appendTextToLog("Applying GPS fiexs"); - int cnt = locationProvider->applyLocations(); - if (cnt == 0) - return; - appendTextToLog(QString("Attached %1 GPS fixes").arg(cnt)); - refreshDiveList(); + std::vector<DiveAndLocation> fixes = locationProvider->getLocations(); + Command::applyGPSFixes(fixes); + appendTextToLog(QString("Attached %1 GPS fixes").arg(fixes.size())); + if (fixes.size()) + changesNeedSaving(); } void QMLManager::populateGpsData() |