Minor fixes to various models

This commit is contained in:
Tobias Fella
2025-12-26 22:17:56 +01:00
committed by Tobias Fella
parent 45cee495a5
commit 96d24f5c3a
7 changed files with 10 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
return QVariant();
}
NeoChatRoom *room = m_rooms.at(index.row());
if (role == DisplayNameRole) {
if (role == DisplayNameRole || role == Qt::DisplayRole) {
return room->displayName();
}
if (role == EscapedDisplayNameRole) {