diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-17 17:44:56 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-17 17:44:56 +0900 |
commit | 936feeedaeda390004d9026ce23324becbcd2c93 (patch) | |
tree | 808198dd5e0768edf61e35b5c68bc43c092466a0 | |
parent | 0f43e74bcf06b2b09018d564a73aa931098eb790 (diff) | |
download | libquotient-936feeedaeda390004d9026ce23324becbcd2c93.tar.gz libquotient-936feeedaeda390004d9026ce23324becbcd2c93.zip |
Fix an occasional crash introduced by the previous commit
-rw-r--r-- | room.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ class Room::Private Private(Connection* c, QString id_, JoinState initialJoinState) : q(nullptr), connection(c), id(std::move(id_)) , avatar(c), joinState(initialJoinState), unreadMessages(false) - , highlightCount(0), notificationCount(0), roomMessagesJob(nullptr) + , highlightCount(0), notificationCount(0) { } Room* q; @@ -92,7 +92,7 @@ class Room::Private QList<User*> membersLeft; QHash<const User*, QString> lastReadEventIds; QString prevBatch; - RoomMessagesJob* roomMessagesJob; + QPointer<RoomMessagesJob> roomMessagesJob; struct FileTransferPrivateInfo { |