From b4de00ce615fdf0e6ae19147f169295d7091b89b Mon Sep 17 00:00:00 2001
From: cberthet <capucine.berthet@savoirfairelinux.com>
Date: Fri, 1 Dec 2023 10:12:25 -0500
Subject: [PATCH] DeleteAccountDialog: resolve display issue with SIP account

GitLab: #1445

Change-Id: I8080df282d0fb4bd958fc50216e0c66b69a09418
---
 src/app/commoncomponents/DeleteAccountDialog.qml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/app/commoncomponents/DeleteAccountDialog.qml b/src/app/commoncomponents/DeleteAccountDialog.qml
index 82dd2ff4f..0b09a7ba7 100644
--- a/src/app/commoncomponents/DeleteAccountDialog.qml
+++ b/src/app/commoncomponents/DeleteAccountDialog.qml
@@ -182,6 +182,8 @@ BaseModalDialog {
                 Rectangle {
                     Layout.fillWidth: true
 
+                    visible: !isSIP
+
                     radius: 5
                     color: root.backgroundColor
 
@@ -242,7 +244,7 @@ BaseModalDialog {
 
                 anchors.centerIn: parent
                 anchors.margins: 15
-                width: accountRectangle.width
+                width: parent.width
 
                 Image{
                     id: warningIcon
@@ -260,9 +262,6 @@ BaseModalDialog {
                     Layout.fillWidth: true
                     Layout.margins: 15
 
-                    visible: !isSIP
-
-
                     text: JamiStrings.deleteAccountInfos
 
                     font.pointSize: JamiTheme.textFontSize
-- 
GitLab