diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-11 07:26:42 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-11 07:26:42 -0800 |
commit | c4fb42f8ad5827619c72e7c7d8f75d247c08ae68 (patch) | |
tree | e32be351d59535e470a60d587ff33fae8b9e4f04 /subsurface-mobile-helper.cpp | |
parent | 26c2dea46ceea4923f1570f20e01dfd01c0a2d27 (diff) | |
download | subsurface-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.cpp | 2 |
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); |