summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-25 16:34:54 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-25 16:34:54 +0300
commit59a42183bce9cdeeb6ca8cd92c6c94f05e16e5a3 (patch)
tree9362e0ab3e9293c2ac36d0e4f19a1b1f807deb6a /src
parentDisable paint updates when removing the room filter (diff)
downloadnheko-59a42183bce9cdeeb6ca8cd92c6c94f05e16e5a3.tar.xz
Fix issue with missing communities due to an unregistered metatype
Diffstat (limited to 'src')
-rw-r--r--src/MatrixClient.cpp1
-rw-r--r--src/RoomList.cpp2
-rw-r--r--src/RoomList.h3
3 files changed, 1 insertions, 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<std::string>(); qRegisterMetaType<std::vector<std::string>>(); qRegisterMetaType<std::vector<QString>>(); + qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>"); } } // 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> userSettings, QWidget *parent) scrollArea_->setWidget(scrollAreaContents_); topLayout_->addWidget(scrollArea_); - qRegisterMetaType<std::map<QString, bool>>(); - 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<QString, bool>; -Q_DECLARE_METATYPE(RoomIds) - class RoomList : public QWidget { Q_OBJECT