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)