mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
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:
parent
6514cb22a6
commit
8791f0571b
1 changed files with 0 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue