From 5283471eda342778b637f7ab0a79d740d34a6442 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 2 Jul 2015 15:45:08 +0200 Subject: [PATCH] delay application registration --- src/libsnore/plugins/snorebackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsnore/plugins/snorebackend.cpp b/src/libsnore/plugins/snorebackend.cpp index d57e9a4..34f23c2 100644 --- a/src/libsnore/plugins/snorebackend.cpp +++ b/src/libsnore/plugins/snorebackend.cpp @@ -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;