From b9d1f982c3facaa5ccf80680a675af6d7312ba5c Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Mon, 27 Mar 2017 21:05:12 -0400 Subject: [PATCH] Fix video save path in general settings --- src/ui/preferences/GeneralSettings.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/preferences/GeneralSettings.qml b/src/ui/preferences/GeneralSettings.qml index 1d60048ba..ed39e4a67 100644 --- a/src/ui/preferences/GeneralSettings.qml +++ b/src/ui/preferences/GeneralSettings.qml @@ -556,14 +556,17 @@ QGCView { QGCButton { id: videoBrowse text: "Browse" - onClicked: videoDialog.visible = true + onClicked: videoDialog.openForLoad() - FileDialog { + QGCFileDialog { id: videoDialog title: "Choose a location to save video files." folder: "file://" + _videoPath.value selectFolder: true - onAccepted: _videoPath.value = QGroundControl.urlToLocalFile(videoDialog.fileUrl) + + onAcceptedForLoad: { + _videoPath.value = file + } } } } -- 2.22.0