delay application registration

This commit is contained in:
Patrick von Reth 2015-07-02 15:45:08 +02:00
parent 5ca5c5df79
commit 5283471eda

View File

@ -47,7 +47,7 @@ bool SnoreBackend::initialize()
connect(SnoreCorePrivate::instance(), &SnoreCorePrivate::notify, this, &SnoreBackend::slotNotify, Qt::QueuedConnection);
for (const Application &a : SnoreCore::instance().aplications()) {
this->slotRegisterApplication(a);
QMetaObject::invokeMethod(this, "slotRegisterApplication", Qt::QueuedConnection, Q_ARG(Snore::Application, a));
}
return true;