From 41b9e541bbe907ffa93d4c7ac75c212a678e4b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Thu, 15 Jun 2023 15:02:39 -0400 Subject: [PATCH] JamiIdentifier: reset edit status on account changes Change-Id: Ifc2c5380b035c10ec188e2b643d87cca9478cd51 GitLab: #1180 --- src/app/commoncomponents/JamiIdentifier.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/commoncomponents/JamiIdentifier.qml b/src/app/commoncomponents/JamiIdentifier.qml index 0668f711..ef895ebc 100644 --- a/src/app/commoncomponents/JamiIdentifier.qml +++ b/src/app/commoncomponents/JamiIdentifier.qml @@ -30,6 +30,15 @@ Item { width: childrenRect.width height: controlsLayout.height + usernameTextEdit.height + 2 * JamiTheme.preferredMarginSize + Connections { + target: CurrentAccount + function onIdChanged(id) { + if (!usernameTextEdit.readOnly) { + usernameTextEdit.readOnly = true; + } + } + } + // Background rounded rectangle. Rectangle { id: outerRect