From 09cca0e0170da98e48f1d276b72af595370a6d90 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Sun, 4 Nov 2018 13:04:26 +0000 Subject: [PATCH] [UI] Fix some actions. --- src/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 4000d44..f0d1c9c 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -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 {