summaryrefslogtreecommitdiff
path: root/src/intent-server-lib/intentserversysteminterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intent-server-lib/intentserversysteminterface.cpp')
-rw-r--r--src/intent-server-lib/intentserversysteminterface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intent-server-lib/intentserversysteminterface.cpp b/src/intent-server-lib/intentserversysteminterface.cpp
index f17038d5..08945c12 100644
--- a/src/intent-server-lib/intentserversysteminterface.cpp
+++ b/src/intent-server-lib/intentserversysteminterface.cpp
@@ -14,8 +14,11 @@ void IntentServerSystemInterface::initialize(IntentServer *intentServer)
connect(this, &IntentServerSystemInterface::replyFromApplication,
m_is, &IntentServer::replyFromApplication);
+
+ // we need to explicitly decouple here via QueuedConnection. Otherwise the request queue
+ // handling in IntentServer can get out of sync
connect(this, &IntentServerSystemInterface::applicationWasStarted,
- m_is, &IntentServer::applicationWasStarted);
+ m_is, &IntentServer::applicationWasStarted, Qt::QueuedConnection);
}
IntentServer *IntentServerSystemInterface::intentServer() const