Fix crash during logout
This commit is contained in:
@@ -397,7 +397,7 @@ QVariant RoomTreeModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
QModelIndex RoomTreeModel::indexForRoom(NeoChatRoom *room) const
|
||||
{
|
||||
if (room == nullptr) {
|
||||
if (room == nullptr || m_connection == nullptr) {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user