From 6e9f14c6acb5d62f758ef8e1be222ef7940cbf26 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 7 Sep 2021 15:31:48 +0200 Subject: [PATCH] fix(ProfilePopup): ensure modal is working again Due to a breaking change in StatusQ, this modal caused a reference error. This commit fixes it. Fixes #3400 --- .../AppLayouts/Chat/components/ProfilePopup.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml index 803fa36633..ca80bd13fe 100644 --- a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml @@ -67,7 +67,7 @@ StatusModal { icon.width: 20 icon.height: 20 icon.name: "qr" - onClicked: contentComponent.qrCodePopup.open() + onClicked: contentItem.qrCodePopup.open() } contentItem: Item { @@ -251,14 +251,14 @@ StatusModal { type: StatusBaseButton.Type.Danger onClicked: { if (isBlocked) { - contentComponent.unblockContactConfirmationDialog.contactName = userName; - contentComponent.unblockContactConfirmationDialog.contactAddress = fromAuthor; - contentComponent.unblockContactConfirmationDialog.open(); + contentItem.unblockContactConfirmationDialog.contactName = userName; + contentItem.unblockContactConfirmationDialog.contactAddress = fromAuthor; + contentItem.unblockContactConfirmationDialog.open(); return; } ontentComponent.blockContactConfirmationDialog.contactName = userName; - contentComponent.blockContactConfirmationDialog.contactAddress = fromAuthor; - contentComponent.blockContactConfirmationDialog.open(); + contentItem.blockContactConfirmationDialog.contactAddress = fromAuthor; + contentItem.blockContactConfirmationDialog.open(); } }, @@ -268,8 +268,8 @@ StatusModal { type: StatusBaseButton.Type.Danger text: qsTr('Remove Contact') onClicked: { - contentComponent.removeContactConfirmationDialog.parentPopup = popup; - contentComponent.removeContactConfirmationDialog.open(); + contentItem.removeContactConfirmationDialog.parentPopup = popup; + contentItem.removeContactConfirmationDialog.open(); } },