From 214f0bc6ae0837dd18a13df182620dbe7890f584 Mon Sep 17 00:00:00 2001 From: namedkitten Date: Fri, 1 May 2020 09:28:34 +0100 Subject: [PATCH] Move back to old file dialog. --- src/qml/MainMenu.qml | 5 +++-- src/qml/main.qml | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) 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 {