mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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::vector<std::string>>();
|
||||
qRegisterMetaType<std::vector<QString>>();
|
||||
qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>");
|
||||
}
|
||||
|
||||
} // namespace http
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue