From 745eeeb79a615ad64488e1b9056f394af085b30f Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 22 Apr 2009 22:53:48 +0000 Subject: [PATCH] Optimization: don't bother running the performMatch if the context is already invalid. svn path=/trunk/KDE/kdelibs/; revision=957814 --- private/runnerjobs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/runnerjobs.cpp b/private/runnerjobs.cpp index 10ac16c4d..6b27484e7 100644 --- a/private/runnerjobs.cpp +++ b/private/runnerjobs.cpp @@ -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