mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix issue with missing communities due to an unregistered metatype
This commit is contained in:
parent
35067088f9
commit
59a42183bc
3 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue