summaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-helper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-11 07:26:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-11 07:26:42 -0800
commitc4fb42f8ad5827619c72e7c7d8f75d247c08ae68 (patch)
treee32be351d59535e470a60d587ff33fae8b9e4f04 /subsurface-mobile-helper.cpp
parent26c2dea46ceea4923f1570f20e01dfd01c0a2d27 (diff)
downloadsubsurface-c4fb42f8ad5827619c72e7c7d8f75d247c08ae68.tar.gz
QML UI: sort GPS fixes correctly
That was silly. We have the GpsWhenRole specificly for sorting and then didn't use it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-mobile-helper.cpp')
-rw-r--r--subsurface-mobile-helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp
index 788ba3b4d..214d65e79 100644
--- a/subsurface-mobile-helper.cpp
+++ b/subsurface-mobile-helper.cpp
@@ -57,7 +57,7 @@ void run_ui()
QSortFilterProxyModel *gpsSortModel = new QSortFilterProxyModel(0);
gpsSortModel->setSourceModel(&gpsListModel);
gpsSortModel->setDynamicSortFilter(true);
- gpsSortModel->setSortRole(GpsListModel::GpsDateRole);
+ gpsSortModel->setSortRole(GpsListModel::GpsWhenRole);
gpsSortModel->sort(0, Qt::DescendingOrder);
QQmlContext *ctxt = engine.rootContext();
ctxt->setContextProperty("diveModel", sortModel);