summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index d230eacb8..44676eb74 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -103,10 +103,9 @@ void run_ui()
gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
gpsSortModel->sort(0, Qt::DescendingOrder);
QQmlContext *ctxt = engine.rootContext();
- MobileListModel *mlm(MobileListModel::instance());
- ctxt->setContextProperty("diveModel", mlm);
ctxt->setContextProperty("gpsModel", gpsSortModel);
ctxt->setContextProperty("vendorList", vendorList);
+ ctxt->setContextProperty("diveModel", MobileModels::instance()->listModel());
set_non_bt_addresses();
ctxt->setContextProperty("connectionListModel", &connectionListModel);