summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-22 17:01:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-22 18:18:07 -0800
commitbfaeb22cc5e4397cab5e7acc283deaf0145121f1 (patch)
tree96582ee7451bda5ee5c587ff9e6d5b8f2e91b102
parentd62e46134daaee0479e70af38e6ab0c4fbe660a5 (diff)
downloadsubsurface-bfaeb22cc5e4397cab5e7acc283deaf0145121f1.tar.gz
QML UI: prevent modification of Multible Buddies text
"Multiple Buddies" is magic in that it means "do not change the buddies set for this dive". Allowing the user to edit that magic phrase defeats the purpose. This deals with part of issue #168 - but of course that magic phrase shouldn't be fixed as English text. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index 6ab2978f0..d489db3e8 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -177,7 +177,7 @@ Item {
}
ComboBox {
id: buddyBox
- editable: true
+ editable: currentText != "Multiple Buddies"
model: diveDetailsListView.currentItem.modelData.dive.buddyList
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true