Fix errors preventing the avatar from being shown when uploaded

(cherry picked from commit 807a9ee779)
This commit is contained in:
Joshua Goins
2023-07-26 02:54:29 -04:00
committed by Carl Schwan
parent 94bf65ab43
commit 7078caac15

View File

@@ -51,11 +51,10 @@ Kirigami.ScrollablePage {
fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.Overlay) fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.Overlay)
fileDialog.chosen.connect(function(receivedSource) { fileDialog.chosen.connect(function(receivedSource) {
mouseArea.fileDialog = null;
if (!receivedSource) { if (!receivedSource) {
return; return;
} }
parent.source = receivedSource; avatar.source = receivedSource;
}); });
fileDialog.onRejected.connect(function() { fileDialog.onRejected.connect(function() {
mouseArea.fileDialog = null; mouseArea.fileDialog = null;