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