summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-30 00:23:57 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-30 00:23:57 +0200
commit18ff58edb3bc186e2114efad34de7ffca803be02 (patch)
tree2e312b1812bda001ca2c68a48cf7cf9711a93e69 /src/timeline/RoomlistModel.cpp
parentFix warning (diff)
downloadnheko-18ff58edb3bc186e2114efad34de7ffca803be02.tar.xz
Fix use after free from Qml widget
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r--src/timeline/RoomlistModel.cpp3
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();