From f0e3d3e4742091e7d4144b5ffa2c993da6681c1b Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 25 Apr 2024 22:46:03 +0200 Subject: [PATCH] Fix some dialog parenting --- src/qml/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }