diff --git a/src/qml/MainMenu.qml b/src/qml/MainMenu.qml index 1b64872..35a2d03 100644 --- a/src/qml/MainMenu.qml +++ b/src/qml/MainMenu.qml @@ -83,13 +83,14 @@ MenuBar { } } - LabsPlatform.FileDialog { + FileDialog { id: fileDialog title: translate.getTranslation("OPEN_FILE", i18n.language) nameFilters: ["All files (*)"] + selectMultiple: false onAccepted: { player.playerCommand(Enums.Commands.LoadFile, - String(fileDialog.file)) + String(fileDialog.fileUrl)) fileDialog.close() } onRejected: { diff --git a/src/qml/main.qml b/src/qml/main.qml index 5e2ff05..37b4e44 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -1,7 +1,6 @@ import QtQuick 2.0 import QtQuick.Controls 2.3 import QtQuick.Window 2.2 -import Qt.labs.settings 1.0 import player 1.0 Window {