From b6dd2a829d0b2bd04929575576f76c52d931dfc3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 31 Dec 2017 17:31:34 +0100 Subject: [PATCH] LocationCompleter: Fix showing old suggestions for one char search string When typing a search string and then deleting it up to last character, old suggestions for 2-character search string would be displayed. --- src/lib/navigation/completer/locationcompleter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/navigation/completer/locationcompleter.cpp b/src/lib/navigation/completer/locationcompleter.cpp index a36f2c301..f9b3713f0 100644 --- a/src/lib/navigation/completer/locationcompleter.cpp +++ b/src/lib/navigation/completer/locationcompleter.cpp @@ -90,6 +90,8 @@ void LocationCompleter::complete(const QString &string) m_openSearchEngine->setSuggestionsParameters(LocationBar::searchEngine().suggestionsParameters); m_suggestionsTerm = trimmedStr; m_openSearchEngine->requestSuggestions(m_suggestionsTerm); + } else { + m_oldSuggestions.clear(); } }