Fix profile cancel button not restoring avatar

This commit is contained in:
miruka 2019-07-18 18:48:32 -04:00
parent a842981406
commit 50930aec36
2 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,6 @@ Item {
opener.file = Qt.binding(() => Qt.resolvedUrl(file)) opener.file = Qt.binding(() => Qt.resolvedUrl(file))
} }
onAccepted: { opener.selectedFile = currentFile, opener.file = file } onAccepted: { opener.selectedFile = currentFile, opener.file = file }
onRejected: { selectedFile = null; file = null} onRejected: { selectedFile = ""; file = ""}
} }
} }

View File

@ -156,6 +156,8 @@ HGridLayout {
onClicked: { onClicked: {
nameField.field.text = userInfo.displayName nameField.field.text = userInfo.displayName
fileDialog.selectedFile = ""
fileDialog.file = ""
} }
} }
} }