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>
This commit is contained in:
parent
d62e46134d
commit
bfaeb22cc5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user