From a00a191371b04d0a1f2e05fab0027ebb3f36c681 Mon Sep 17 00:00:00 2001
From: pmagnier-slimani <page.magnier-slimani@savoirfairelinux.com>
Date: Wed, 12 Mar 2025 14:23:49 -0400
Subject: [PATCH] RTLlanguages: Fix crash when opening settings

Delete the preferedWidth of a row in the accountComboBox to avoid an
infinite polish() loop when accessing the settings with an RTL language.

GitLab: #1945

Change-Id: I37a4a1c61a296743835d677ab242c0fe214e8d16
---
 src/app/mainview/components/AccountComboBox.qml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/app/mainview/components/AccountComboBox.qml b/src/app/mainview/components/AccountComboBox.qml
index e8a6f8e2..6fa06f73 100644
--- a/src/app/mainview/components/AccountComboBox.qml
+++ b/src/app/mainview/components/AccountComboBox.qml
@@ -45,7 +45,7 @@ Label {
         anchors.fill: parent
 
         color: JamiTheme.backgroundColor
-        Behavior on color  {
+        Behavior on color {
             ColorAnimation {
                 duration: JamiTheme.shortFadeDuration
             }
@@ -88,7 +88,6 @@ Label {
 
                 spacing: 10
 
-
                 Avatar {
                     id: avatar
                     objectName: "accountComboBoxAvatar"
@@ -147,7 +146,6 @@ Label {
 
             spacing: 10
 
-            Layout.preferredWidth: childrenRect.width
             Layout.preferredHeight: parent.height
 
             JamiPushButton {
-- 
GitLab