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>
This commit is contained in:
Dirk Hohndel 2016-02-13 21:28:32 -08:00
parent 0ce1dd80cc
commit 23b877a869

View file

@ -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 {