Fix errors preventing the avatar from being shown when uploaded
This commit is contained in:
committed by
Carl Schwan
parent
4f32a168cd
commit
807a9ee779
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user