Skip to content

Commit

Permalink
Use new QGCFileDialog support
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Gagne authored and Don Gagne committed Apr 13, 2017
1 parent 173f35a commit 6503e08
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/AnalyzeView/LogDownloadPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,21 @@ AnalyzePage {
var o = logController.model.get(rowIndex)
if (o) o.selected = true
})
//-- Download them
logController.download()
fileDialog.qgcView = logDownloadPage
fileDialog.title = qsTr("Select save directory")
fileDialog.selectExisting = true
fileDialog.folder = QGroundControl.settingsManager.appSettings.telemetrySavePath
fileDialog.selectFolder = true
fileDialog.openForLoad()
}

QGCFileDialog {
id: fileDialog

onAcceptedForLoad: {
logController.download(file)
close()
}
}
}

Expand Down

0 comments on commit 6503e08

Please sign in to comment.