From 28e3880e10776761f391b5e55d104b033736fc19 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Wed, 11 Nov 2015 15:13:48 +0100 Subject: [PATCH] ui: Fixed cursor jumping to end position when editing search query --- src/app/qt/element/QtSmartSearchBox.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/qt/element/QtSmartSearchBox.cpp b/src/app/qt/element/QtSmartSearchBox.cpp index 4e31f9c8..3f554df7 100644 --- a/src/app/qt/element/QtSmartSearchBox.cpp +++ b/src/app/qt/element/QtSmartSearchBox.cpp @@ -397,8 +397,11 @@ void QtSmartSearchBox::onTextEdited(const QString& text) if (match.nameHierarchy.size() && !m_allowMultipleElements) { + if (m_matches.size()) + { + matchesChanged = true; + } clearMatches(); - matchesChanged = true; } if (matchesChanged)