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:
parent
884acb5287
commit
fe827858cd
@ -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(/^.*[\\\/]/, '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user