diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-13 21:28:32 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-13 21:28:32 -0800 |
commit | 23b877a86962354fcdac272f7d6fecd1257126a7 (patch) | |
tree | 6d69befb4f05f2103f70c37520356ed8b9be3041 /qt-mobile/qml | |
parent | 0ce1dd80cc4752764e54b2a64e8bc9641b297239 (diff) | |
download | subsurface-23b877a86962354fcdac272f7d6fecd1257126a7.tar.gz |
QML UI: don't change dive while editing
If the user taps on a dive in the dive list while a dive is being edited
or added, ignore that tap.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index 298680682..a36758a98 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -26,9 +26,11 @@ MobileComponents.Page { // When clicked, the mode changes to details view onClicked: { - diveListView.currentIndex = index - detailsWindow.showDiveIndex(index); - stackView.push(detailsWindow); + if (detailsWindow.state === "view") { + diveListView.currentIndex = index + detailsWindow.showDiveIndex(index); + stackView.push(detailsWindow); + } } Item { |