SelectParentDialog: Fix selecting room

This commit is contained in:
Carl Schwan
2024-09-24 18:14:14 +02:00
parent 90061caec3
commit 9b837a8656

View File

@@ -49,7 +49,7 @@ Kirigami.Dialog {
visible: !chosenRoomDelegate.visible
text: i18nc("@action:button", "Pick room")
onClicked: {
let dialog = pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'ExploreRoomsPage'), {
let dialog = QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'ExploreRoomsPage'), {
connection: root.room.connection,
showOnlySpaces: true,
showOnlySpacesButton: false