diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-02 04:47:51 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-02 04:47:51 -0800 |
commit | ce83357889659c11e71e09cc1830f26f8540c08e (patch) | |
tree | e902b327eda044ad8fe1b908f66902a88b580d48 /qt-mobile | |
parent | 3b37844708d0bcbac3dbec86a44d6dfff69639a0 (diff) | |
download | subsurface-ce83357889659c11e71e09cc1830f26f8540c08e.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qml/DiveDetailsEdit.qml | 2 |
1 files changed, 2 insertions, 0 deletions
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 |