From 59a42183bce9cdeeb6ca8cd92c6c94f05e16e5a3 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 25 Jul 2018 16:34:54 +0300 Subject: [PATCH] Fix issue with missing communities due to an unregistered metatype --- src/MatrixClient.cpp | 1 + src/RoomList.cpp | 2 -- src/RoomList.h | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/MatrixClient.cpp b/src/MatrixClient.cpp index e41c66c1..8d9361af 100644 --- a/src/MatrixClient.cpp +++ b/src/MatrixClient.cpp @@ -33,6 +33,7 @@ init() qRegisterMetaType(); qRegisterMetaType>(); qRegisterMetaType>(); + qRegisterMetaType>("std::map"); } } // namespace http diff --git a/src/RoomList.cpp b/src/RoomList.cpp index 143e0bdd..1e0a68d9 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp @@ -56,8 +56,6 @@ RoomList::RoomList(QSharedPointer userSettings, QWidget *parent) scrollArea_->setWidget(scrollAreaContents_); topLayout_->addWidget(scrollArea_); - qRegisterMetaType>(); - connect(this, &RoomList::updateRoomAvatarCb, this, &RoomList::updateRoomAvatar); } diff --git a/src/RoomList.h b/src/RoomList.h index d676015c..93707671 100644 --- a/src/RoomList.h +++ b/src/RoomList.h @@ -34,9 +34,6 @@ class UserSettings; struct DescInfo; struct RoomInfo; -using RoomIds = std::map; -Q_DECLARE_METATYPE(RoomIds) - class RoomList : public QWidget { Q_OBJECT