Fix crashes when logging out of connection

This commit is contained in:
Tobias Fella
2024-07-06 19:44:00 +02:00
parent 9e6c00f78c
commit bec1ad7bee
2 changed files with 10 additions and 2 deletions

View File

@@ -221,6 +221,10 @@ int RoomTreeModel::rowCount(const QModelIndex &parent) const
parentItem = static_cast<RoomTreeItem *>(parent.internalPointer());
}
if (!parentItem) {
return 0;
}
return parentItem->childCount();
}