diff --git a/src/qml/Main.qml b/src/qml/Main.qml index 8fecdb9a1..b64b69255 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -125,7 +125,7 @@ Kirigami.ApplicationWindow { } function onAskDirectChatConfirmation(user) { - askDirectChatConfirmationComponent.createObject(QQC2.ApplicationWindow.overlay, { + askDirectChatConfirmationComponent.createObject(this, { user: user }).open(); } @@ -309,7 +309,7 @@ Kirigami.ApplicationWindow { }); } function onUserConsentRequired(url) { - let consent = consentSheetComponent.createObject(QQC2.ApplicationWindow.overlay); + let consent = consentSheetComponent.createObject(this); consent.url = url; consent.open(); }