fix(desktop/profile): Ensure that the file is selected in FileDialog
Fix #5238
This commit is contained in:
parent
a16592c61f
commit
f067d59612
|
@ -81,8 +81,10 @@ StatusModal {
|
|||
qsTrId("image-files----jpg---jpeg---png-")
|
||||
]
|
||||
onAccepted: {
|
||||
cropImageModal.selectedImage = imageDialog.fileUrls[0];
|
||||
cropImageModal.open()
|
||||
if(imageDialog.fileUrls.length > 0) {
|
||||
cropImageModal.selectedImage = imageDialog.fileUrls[0];
|
||||
cropImageModal.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue