diff --git a/src/app/qml/Main.qml b/src/app/qml/Main.qml index 4ace5d2f4..fa9e1853c 100644 --- a/src/app/qml/Main.qml +++ b/src/app/qml/Main.qml @@ -108,10 +108,10 @@ Kirigami.ApplicationWindow { } function onAskJoinRoom(room) { - Qt.createComponent("org.kde.neochat", "JoinRoomDialog").createObject(root, { + (Qt.createComponent("org.kde.neochat", "JoinRoomDialog").createObject(root, { room: room, connection: root.connection - }).open(); + }) as JoinRoomDialog).open(); } function onShowUserDetail(user, room) {