mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
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.
This commit is contained in:
parent
eb92250003
commit
b6dd2a829d
@ -90,6 +90,8 @@ void LocationCompleter::complete(const QString &string)
|
|||||||
m_openSearchEngine->setSuggestionsParameters(LocationBar::searchEngine().suggestionsParameters);
|
m_openSearchEngine->setSuggestionsParameters(LocationBar::searchEngine().suggestionsParameters);
|
||||||
m_suggestionsTerm = trimmedStr;
|
m_suggestionsTerm = trimmedStr;
|
||||||
m_openSearchEngine->requestSuggestions(m_suggestionsTerm);
|
m_openSearchEngine->requestSuggestions(m_suggestionsTerm);
|
||||||
|
} else {
|
||||||
|
m_oldSuggestions.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user