diff --git a/effects.cpp b/effects.cpp index 11781d6751..da48338ecb 100644 --- a/effects.cpp +++ b/effects.cpp @@ -305,6 +305,7 @@ void EffectsHandlerImpl::reconfigure() QFutureWatcher *watcher = new QFutureWatcher(this); connect(watcher, SIGNAL(finished()), this, SLOT(slotEffectsQueried())); watcher->setFuture(QtConcurrent::run(KServiceTypeTrader::self(), &KServiceTypeTrader::query, QString("KWin/Effect"), QString())); + watcher->waitForFinished(); // TODO: remove once KConfigGroup is thread safe, bug #321576 } void EffectsHandlerImpl::slotEffectsQueried()