diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-30 00:23:57 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-30 00:23:57 +0200 |
commit | 18ff58edb3bc186e2114efad34de7ffca803be02 (patch) | |
tree | 2e312b1812bda001ca2c68a48cf7cf9711a93e69 /src/timeline/RoomlistModel.cpp | |
parent | Fix warning (diff) | |
download | nheko-18ff58edb3bc186e2114efad34de7ffca803be02.tar.xz |
Fix use after free from Qml widget
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r-- | src/timeline/RoomlistModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp index d2ba0dc3..283224f1 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp @@ -13,7 +13,8 @@ #include "UserSettingsPage.h" RoomlistModel::RoomlistModel(TimelineViewManager *parent) - : manager(parent) + : QAbstractListModel(parent) + , manager(parent) { connect(ChatPage::instance(), &ChatPage::decryptSidebarChanged, this, [this]() { auto decrypt = ChatPage::instance()->userSettings()->decryptSidebar(); |