diff options
Diffstat (limited to 'src/RoomsModel.cpp')
-rw-r--r-- | src/RoomsModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/RoomsModel.cpp b/src/RoomsModel.cpp index 7481eb51..fff9cbc6 100644 --- a/src/RoomsModel.cpp +++ b/src/RoomsModel.cpp @@ -36,6 +36,7 @@ RoomsModel::roleNames() const {Roles::RoomID, "roomid"}, {Roles::RoomName, "roomName"}, {Roles::IsTombstoned, "isTombstoned"}, + {Roles::IsSpace, "isSpace"}, }; } @@ -69,6 +70,8 @@ RoomsModel::data(const QModelIndex &index, int role) const return QString::fromStdString(rooms[index.row()].id).toHtmlEscaped(); case Roles::IsTombstoned: return rooms[index.row()].is_tombstoned; + case Roles::IsSpace: + return rooms[index.row()].is_space; } } return {}; |