Work around QML opening dialog in wrong window

(cherry picked from commit 203be8bd35)
This commit is contained in:
Tobias Fella
2024-04-23 13:24:00 +02:00
parent 9e45f22e09
commit ab33d1ca88

View File

@@ -28,6 +28,7 @@ ColumnLayout {
displayText: RoomManager.roomListModel.data(RoomManager.roomListModel.index(currentIndex, 0), RoomListModel.DisplayNameRole)
model: RoomManager.roomListModel
currentIndex: 0
displayMode: FormCard.FormComboBoxDelegate.Page
Component.onCompleted: currentIndex = RoomManager.roomListModel.rowForRoom(root.room)
onCurrentValueChanged: root.room = RoomManager.roomListModel.roomByAliasOrId(roomComboBox.currentValue)
}