Commit 3bf2890a authored by David Faure's avatar David Faure

Kill ContactSearchJob when switching to another message.

When doing this fast and the contact search job didn't even have
time to start, this saves running a whole search for nothing.
parent b1c9ec4b
......@@ -49,6 +49,7 @@ ContactDisplayMessageMemento::~ContactDisplayMessageMemento()
{
if (mSearchJob) {
disconnect(mSearchJob.data(), &Akonadi::ContactSearchJob::result, this, &ContactDisplayMessageMemento::slotSearchJobFinished);
mSearchJob->kill();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment