QML UI: when canceling a dive add, go back to dive list

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-13 23:54:40 -08:00
parent 3413dfc3aa
commit f2c8aed07b

View file

@ -90,6 +90,7 @@ MobileComponents.Page {
event.accepted = true;
} else if (state === "add") {
endAddMode()
stackView.pop()
event.accepted = true;
}
// if we were in view mode, don't accept the event and pop the page