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;