Fix errors preventing the avatar from being shown when uploaded
(cherry picked from commit 807a9ee779)
This commit is contained in:
committed by
Carl Schwan
parent
94bf65ab43
commit
7078caac15
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user