hack to fix crash in roomtreemodel

This commit is contained in:
Carl Schwan
2024-02-20 12:33:36 +01:00
parent 76e7eb7009
commit c6300179d8

View File

@@ -231,7 +231,7 @@ QHash<int, QByteArray> RoomTreeModel::roleNames() const
// TODO room type changes
QVariant RoomTreeModel::data(const QModelIndex &index, int role) const
{
if (!index.isValid()) {
if (!checkIndex(index, QAbstractItemModel::CheckIndexOption::IndexIsValid)) {
return QVariant();
}