summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/HintsTextEdit.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml
index 41ae2b225..fb9cee417 100644
--- a/mobile-widgets/qml/HintsTextEdit.qml
+++ b/mobile-widgets/qml/HintsTextEdit.qml
@@ -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