Commit 4dea0fcc authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #5259 from dogmaphobic/appMessages

Replace FileDialog with QGCFileDialog
parents 8134bf1a 5be3507d
......@@ -111,17 +111,16 @@ QGCView {
delegate: delegateItem
}
FileDialog {
QGCFileDialog {
id: writeDialog
folder: shortcuts.home
folder: QGroundControl.settingsManager.appSettings.logSavePath
nameFilters: [qsTr("Log files (*.txt)"), qsTr("All Files (*)")]
selectExisting: false
title: qsTr("Select log save file")
onAccepted: {
onAcceptedForSave: {
debugMessageModel.writeMessages(fileUrl);
visible = false;
}
onRejected: visible = false
}
Connections {
......@@ -134,7 +133,7 @@ QGCView {
id: writeButton
anchors.bottom: parent.bottom
anchors.left: parent.left
onClicked: writeDialog.visible = true
onClicked: writeDialog.openForSave()
text: qsTr("Save App Log")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment