aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 09:31:51 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 09:31:51 -0800
commit37c74b5c2feecc02010ac981d5d5e4f65d18a6ce (patch)
treec7625afaea99c56e88c093edea1ab840b1e9619b /qt-mobile
parenta0aa27e86471ec94e00acfd874ca7cdd9c793308 (diff)
downloadsubsurface-37c74b5c2feecc02010ac981d5d5e4f65d18a6ce.tar.gz
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>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetails.qml2
1 files changed, 2 insertions, 0 deletions
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()