Optimization: don't bother running the performMatch if the context is already invalid.
svn path=/trunk/KDE/kdelibs/; revision=957814
This commit is contained in:
parent
7e598b49ec
commit
745eeeb79a
@ -154,7 +154,7 @@ void FindMatchesJob::run()
|
||||
{
|
||||
// kDebug() << "Running match for " << m_runner->objectName()
|
||||
// << " in Thread " << thread()->id() << endl;
|
||||
m_runner->performMatch(m_context);
|
||||
if (m_context.isValid()) m_runner->performMatch(m_context);
|
||||
}
|
||||
|
||||
int FindMatchesJob::priority() const
|
||||
|
Loading…
Reference in New Issue
Block a user