Commit f60014c1 authored by Mirko Boehm (Endocode)'s avatar Mirko Boehm (Endocode)
Browse files

When assiging a queue policy, the mutex of the job must be held.

This should fix the assert in KRunner.
parent 6a80b401
......@@ -20,7 +20,7 @@
#include "runnerjobs_p.h"
#include <QTimer>
#include <QMutexLocker>
#include <QDebug>
#include "runnermanager.h"
......@@ -128,6 +128,7 @@ FindMatchesJob::FindMatchesJob(Plasma::AbstractRunner *runner,
m_timer(0),
m_decorator(new ThreadWeaver::QObjectDecorator(this, true))
{
QMutexLocker l(mutex()); Q_UNUSED(l);
if (runner->speed() == Plasma::AbstractRunner::SlowSpeed) {
assignQueuePolicy(&DelayedRunnerPolicy::instance());
} else {
......
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