mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
525cd4c9e3
commit
ee4ae49d37
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue