Unverified Commit e66e74fa authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5818 from patrickelectric/2

PlanView: Solve KML error
parents c6701173 c4891ae8
......@@ -142,6 +142,14 @@ QGCView {
}
}
Component {
id: noItemForKML
QGCViewMessage {
message: qsTr("You need at least one item to create a KML.")
}
}
PlanMasterController {
id: masterController
......@@ -786,6 +794,11 @@ QGCView {
Layout.fillWidth: true
enabled: !masterController.syncInProgress
onClicked: {
// First point do not count
if (_visualItems.count < 2) {
_qgcView.showDialog(noItemForKML, qsTr("KML"), _qgcView.showDialogDefaultWidth, StandardButton.Cancel)
return
}
dropPanel.hide()
masterController.saveKmlToSelectedFile()
}
......
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