From 8e1736fd9ec9628781595f6e5e9d35977d63e83c Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Tue, 14 Sep 2021 15:25:15 -0400
Subject: [PATCH] account-migration: fix dialog avatar loading

Broken javascript caused the dialog component to fail.

Change-Id: I049f651e2db16749dbdf8f6fe3ee61df05361986
Gitlab: #524
---
 src/commoncomponents/AccountMigrationDialog.qml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/commoncomponents/AccountMigrationDialog.qml b/src/commoncomponents/AccountMigrationDialog.qml
index 0f6a80464..04db7cb1b 100644
--- a/src/commoncomponents/AccountMigrationDialog.qml
+++ b/src/commoncomponents/AccountMigrationDialog.qml
@@ -88,8 +88,6 @@ Window {
         accountID = accountsToMigrateListModel.data(accountsToMigrateListModel.index(
                                                         0, 0), AccountsToMigrateListModel.Account_ID)
 
-        avatarImg.updateImage(accountID)
-
         connectionMigrationEnded.enabled = false
         migrationPushButton.enabled = false
         stackedWidget.currentIndex = 0
@@ -284,11 +282,10 @@ Window {
                             color: "transparent"
 
                             Avatar {
-                                id: avatarImg
-
                                 anchors.fill: parent
                                 showPresenceIndicator: false
                                 mode: Avatar.Mode.Account
+                                imageId: accountID
                             }
                         }
                     }
-- 
GitLab