1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00

Fix image selector using old dialog properties

This commit is contained in:
Elias Steurer 2023-02-24 09:37:59 +01:00
parent 884acb5287
commit fe827858cd

View File

@ -189,8 +189,8 @@ Item {
title: "Please choose a file"
nameFilters: ["Images (*.png *.jpg)"]
onAccepted: {
imageSource = fileDialog.fileUrl;
txtName.text = fileDialog.fileUrl.toString().replace(/^.*[\\\/]/, '');
imageSource = fileDialog.selectedFile;
txtName.text = fileDialog.selectedFile.toString().replace(/^.*[\\\/]/, '');
}
}
}