From 7078caac15aa204ac8cd2df185ec8af17344fee2 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 26 Jul 2023 02:54:29 -0400 Subject: [PATCH] Fix errors preventing the avatar from being shown when uploaded (cherry picked from commit 807a9ee779611e61368d80bec8ce134c6522ce9f) --- src/qml/Settings/AccountEditorPage.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qml/Settings/AccountEditorPage.qml b/src/qml/Settings/AccountEditorPage.qml index 0f2d7ebf5..3fd6c6e46 100644 --- a/src/qml/Settings/AccountEditorPage.qml +++ b/src/qml/Settings/AccountEditorPage.qml @@ -51,11 +51,10 @@ Kirigami.ScrollablePage { fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.Overlay) fileDialog.chosen.connect(function(receivedSource) { - mouseArea.fileDialog = null; if (!receivedSource) { return; } - parent.source = receivedSource; + avatar.source = receivedSource; }); fileDialog.onRejected.connect(function() { mouseArea.fileDialog = null;