Fix issue with missing communities due to an unregistered metatype

This commit is contained in:
Konstantinos Sideris 2018-07-25 16:34:54 +03:00
parent 35067088f9
commit 59a42183bc
3 changed files with 1 additions and 5 deletions

View file

@ -33,6 +33,7 @@ init()
qRegisterMetaType<std::string>(); qRegisterMetaType<std::string>();
qRegisterMetaType<std::vector<std::string>>(); qRegisterMetaType<std::vector<std::string>>();
qRegisterMetaType<std::vector<QString>>(); qRegisterMetaType<std::vector<QString>>();
qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>");
} }
} // namespace http } // namespace http

View file

@ -56,8 +56,6 @@ RoomList::RoomList(QSharedPointer<UserSettings> userSettings, QWidget *parent)
scrollArea_->setWidget(scrollAreaContents_); scrollArea_->setWidget(scrollAreaContents_);
topLayout_->addWidget(scrollArea_); topLayout_->addWidget(scrollArea_);
qRegisterMetaType<std::map<QString, bool>>();
connect(this, &RoomList::updateRoomAvatarCb, this, &RoomList::updateRoomAvatar); connect(this, &RoomList::updateRoomAvatarCb, this, &RoomList::updateRoomAvatar);
} }

View file

@ -34,9 +34,6 @@ class UserSettings;
struct DescInfo; struct DescInfo;
struct RoomInfo; struct RoomInfo;
using RoomIds = std::map<QString, bool>;
Q_DECLARE_METATYPE(RoomIds)
class RoomList : public QWidget class RoomList : public QWidget
{ {
Q_OBJECT Q_OBJECT