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:
Jacopo De Simoi 2009-04-22 22:53:48 +00:00
parent 7e598b49ec
commit 745eeeb79a

View File

@ -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