summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-12-06 14:14:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commit1f669f9714ec87657eb276dc538822d8abbe77a5 (patch)
tree64502e1420d1f405c2ec40ae3cbb81fafe350088 /mobile-widgets/qml/DiveList.qml
parent0fc82e33987ec982d6a49440dcc28e17782d6ed7 (diff)
downloadsubsurface-1f669f9714ec87657eb276dc538822d8abbe77a5.tar.gz
mobile/divelist: when clicking on a row, use select_single_dive()
This is a small step in unifying mobile and desktop. I'm unsure whether it is correct to play this via the QMLManager or whether we should call form QML directly into the model? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 0aa3772e7..94289c6b7 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -54,7 +54,7 @@ Kirigami.ScrollablePage {
} else {
manager.appendTextToLog("clicked on dive")
if (detailsWindow.state === "view") {
- detailsWindow.showDiveIndex(id); // we need access to dive->id
+ manager.selectRow(model.row);
// switch to detailsWindow (or push it if it's not in the stack)
var i = rootItem.pageIndex(detailsWindow)
if (i === -1)