From 5adffddbd80cd241bfee9b19f460586b31df795c Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 5 Nov 2023 13:45:10 +0000 Subject: [PATCH] Fix InviteUserPage Port the InviteUserPage to Qt6 and fix close action fixes network/neochat#614 --- src/qml/InviteUserPage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/InviteUserPage.qml b/src/qml/InviteUserPage.qml index 5fae26d9e..5b714a7c8 100644 --- a/src/qml/InviteUserPage.qml +++ b/src/qml/InviteUserPage.qml @@ -18,13 +18,13 @@ Kirigami.ScrollablePage { title: i18n("Invite a User") - actions { - main: Kirigami.Action { + actions: [ + Kirigami.Action { icon.name: "dialog-close" text: i18nc("@action", "Cancel") - onTriggered: applicationWindow().pageStack.layers.pop() + onTriggered: root.closeDialog() } - } + ] header: RowLayout { Layout.fillWidth: true Layout.margins: Kirigami.Units.largeSpacing