QML UI: don't populate hints texts when adding dive

If we don't have values for the HintsTextEdit fields, don't show any
values.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-04-14 13:43:48 -07:00
parent 525cd4c9e3
commit ee4ae49d37

View file

@ -87,7 +87,7 @@ TextField {
id: hintsView
anchors.fill: parent
clip: true
onCurrentIndexChanged: root.text = model[currentIndex];
onCurrentIndexChanged: root.text = currentIndex === -1 ? "" : model[currentIndex];
delegate: Kirigami.BasicListItem {
label: modelData