diff --git a/src/ui/preferences/GeneralSettings.qml b/src/ui/preferences/GeneralSettings.qml index 1d60048ba7869b227f492517249084d0a339d689..ed39e4a67cee72c391750c1ea000a939ed8b9fc2 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 + } } } }