Only dequeue our ThreadWeaver jobs

REVIEW-IN: 104973
This commit is contained in:
Aurélien Gâteau 2012-05-17 15:00:13 +02:00
parent f75b1e7d10
commit 162456d04a

View File

@ -811,7 +811,9 @@ void RunnerManager::reset()
qDeleteAll(d->oldSearchJobs);
d->oldSearchJobs.clear();
} else {
Weaver::instance()->dequeue();
Q_FOREACH(FindMatchesJob *job, d->searchJobs) {
Weaver::instance()->dequeue(job);
}
d->oldSearchJobs += d->searchJobs;
}