aboutsummaryrefslogtreecommitdiffstats
path: root/app/taskmanager.cpp
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-04-16 15:50:34 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2020-04-20 12:26:59 +0200
commit35e9e80b883eb84b5e598994e4cd620ea2044af6 (patch)
tree32e69a8bd035774e7f9fc6c7d741384fd930742d /app/taskmanager.cpp
parentb70605f802e7d9454629bb856dbe0157d47fb24a (diff)
register shared_ptr<Message> before connection
Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I8ce5eba8c88b4e1ae4411a4936502a24ba4541bd
Diffstat (limited to 'app/taskmanager.cpp')
-rw-r--r--app/taskmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/taskmanager.cpp b/app/taskmanager.cpp
index 97c376f..6c620a9 100644
--- a/app/taskmanager.cpp
+++ b/app/taskmanager.cpp
@@ -19,6 +19,7 @@ TaskManager::~TaskManager() {
void TaskManager::open(const QUrl &bindingAddress)
{
+ qRegisterMetaType<std::shared_ptr<Message>>("std::shared_ptr<Message>");
m_loop = new MessageEngine(bindingAddress);
QObject::connect(m_loop, &MessageEngine::connected, this, &TaskManager::onConnected);
QObject::connect(m_loop, &MessageEngine::messageReceived, this, &TaskManager::onMessageReceived, Qt::QueuedConnection);