1
0
Fork 0

[UI] Fix some actions.

This commit is contained in:
Kitteh 2018-11-04 13:04:26 +00:00
parent f436f77ba5
commit 09cca0e017

View file

@ -294,7 +294,7 @@ ApplicationWindow {
title: translate.getTranslation("OPEN_FILE", i18n.language)
nameFilters: ["All files (*)"]
onAccepted: {
player.command(["loadfile", String(fileDialog.fileUrl)])
player.command(String(fileDialog.fileUrl))
fileDialog.close()
}
onRejected: {
@ -307,7 +307,7 @@ ApplicationWindow {
title: translate.getTranslation("URL_FILE_PATH", i18n.language)
standardButtons: StandardButton.Cancel | StandardButton.Open
onAccepted: {
player.loadFile("loadfile")
player.loadFile(pathText.text)
pathText.text = ""
}
TextField {