From 37c74b5c2feecc02010ac981d5d5e4f65d18a6ce Mon Sep 17 00:00:00 2001 From: Dirk Hohndel <dirk@hohndel.org> Date: Fri, 1 Jan 2016 09:31:51 -0800 Subject: QML UI: update context menu text The automagic update gets disabled once we overwrite the text with "Save" at some point, so instead we appear to have to do this manually. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> --- qt-mobile/qml/DiveDetails.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-mobile') diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index b4f30dab9..52fadd33c 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -66,8 +66,10 @@ MobileComponents.Page { buddy = detailsEdit.buddyText divemaster = detailsEdit.divemasterText notes = detailsEdit.notesText + diveDetailsWindow.viewEditText = "Edit" diveDetailsWindow.state = "view" } else { + diveDetailsWindow.viewEditText = "Save" diveDetailsWindow.state = "edit" } contextDrawer.close() -- cgit v1.2.3-70-g09d2