From ce83357889659c11e71e09cc1830f26f8540c08e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Mar 2016 04:47:51 -0800 Subject: QML UI: after adding a dive, jump to it in the list Don't do the slow motion scrolling through the list if we previously showed a different dive in the list. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsEdit.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml index dc816665e..38dd5dad9 100644 --- a/qt-mobile/qml/DiveDetailsEdit.qml +++ b/qt-mobile/qml/DiveDetailsEdit.qml @@ -51,6 +51,8 @@ Item { diveDetailsListView.currentItem.modelData.notes = detailsEdit.notesText diveDetailsPage.state = "view" Qt.inputMethod.hide() + // now make sure we directly show the saved dive (this may be a new dive, or it may have moved) + showDiveIndex(manager.getIndex(dive_id)) } height: editArea.height -- cgit v1.2.3-70-g09d2