Fix Help index filter after recent refactoring

It was incorrectly updating cached results, so e.g. shortening the
search string was not forcing a new search.

Change-Id: Ie55fce72b7363258195423f5686f013aeafc7d57
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-01-12 13:12:36 +01:00
parent e40477cc81
commit ac18f9f1d8

View File

@@ -129,6 +129,7 @@ QList<LocatorFilterEntry> HelpIndexFilter::matchesFor(QFutureInterface<LocatorFi
Utils::sort(keywords); Utils::sort(keywords);
keywords << unsortedKeywords; keywords << unsortedKeywords;
m_keywordCache = allresults; m_keywordCache = allresults;
m_searchTermCache = entry;
foreach (const QString &keyword, keywords) foreach (const QString &keyword, keywords)
entries.append(LocatorFilterEntry(this, keyword, QVariant(), m_icon)); entries.append(LocatorFilterEntry(this, keyword, QVariant(), m_icon));