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>
This commit is contained in:
committed by
Dirk Hohndel
parent
0fc82e3398
commit
1f669f9714
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user