plasma: do not emit Plasma::RunnerContext::matchesChanged() from Plasma::RunnerContext::reset()

any preperation for matching anew should be done prior to starting a query

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-18 22:14:48 +03:00
parent 6514cb22a6
commit 8791f0571b

View file

@ -292,7 +292,6 @@ void RunnerContext::reset()
// the dptr) then we won't get a copy made
if (!d->matches.isEmpty()) {
d->matches.clear();
emit matchesChanged();
}
d->term.clear();
@ -303,11 +302,9 @@ void RunnerContext::reset()
void RunnerContext::setQuery(const QString &term)
{
reset();
if (term.isEmpty()) {
return;
}
d->term = term;
d->determineType();
}