summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp10
-rw-r--r--mobile-widgets/qmlmanager.h1
2 files changed, 2 insertions, 9 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index bc99088ee..4b3286911 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -412,19 +412,13 @@ void QMLManager::selectSwipeRow(int row)
select_single_dive(d);
}
-void QMLManager::updateSiteList()
-{
- LocationInformationModel::instance()->update();
- emit locationListChanged();
-}
-
void QMLManager::updateAllGlobalLists()
{
buddyModel.updateModel(); emit buddyListChanged();
suitModel.updateModel(); emit suitListChanged();
divemasterModel.updateModel(); emit divemasterListChanged();
- // TODO: Probably not needed anymore, as the dive site list is generated on the fly!
- updateSiteList();
+ // TODO: It would be nice if we could export the list of locations via model/view instead of a Q_PROPERTY
+ emit locationListChanged();
}
static QString nocloud_localstorage()
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 398da0454..73fa7917c 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -263,7 +263,6 @@ private:
QString m_progressMessage;
bool m_btEnabled;
void updateAllGlobalLists();
- void updateSiteList();
location_t getGps(QString &gps);
QString m_pluggedInDeviceName;