From 14af2dccf0303c57cebed15cadace437bc478ce9 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Fri, 31 Aug 2018 16:09:44 +0200 Subject: [PATCH] Use Qt::QueuedConnection to process remote hotkey actions --- src/blackcore/context/contextapplication.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blackcore/context/contextapplication.cpp b/src/blackcore/context/contextapplication.cpp index 05771b494..ac03731ed 100644 --- a/src/blackcore/context/contextapplication.cpp +++ b/src/blackcore/context/contextapplication.cpp @@ -107,11 +107,13 @@ namespace BlackCore Q_ASSERT_X(s, Q_FUNC_INFO, "Connect hotkey actions failed"); Q_UNUSED(s); - s = connect(CInputManager::instance(), &CInputManager::remoteActionFromLocal, [ = ](const QString & action, bool argument) + s = connect(CInputManager::instance(), &CInputManager::remoteActionFromLocal, this, [ = ](const QString & action, bool argument) { if (!myself) { return; } this->callHotkeyAction(action, argument, {}); - }); + }, + Qt::QueuedConnection); + Q_ASSERT_X(s, Q_FUNC_INFO, "Connect remote action failed"); Q_UNUSED(s);