let the world know our matches have changed when they, well, change. always.

(neat when optimizations reveal bugs: previously when we were always setting the match lists even when we got empty lists, this was masking the fact that we were never updating the matches when the search context was reset ... so there was always a period of time when there were stale matches pointing off into outerspace in the UI. and of course, if no engines returned anything .. booM! but once we were not responding to empty match lists this problem became very visible.)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775180
This commit is contained in:
Aaron J. Seigo 2008-02-15 03:57:54 +00:00
parent 78b83142ad
commit 022875b1d5

View File

@ -150,6 +150,7 @@ SearchContext::~SearchContext()
void SearchContext::resetSearchTerm(const QString &term)
{
d->resetState();
emit matchesChanged();
setSearchTerm(term);
}
@ -349,6 +350,7 @@ QList<SearchMatch *> SearchContext::possibleMatches() const
void SearchContext::clearMatches()
{
d->clearMatches();
emit matchesChanged();
}
}