Commit bfedbe21 authored by DonLakeFlyer's avatar DonLakeFlyer

Call correct removeAll version based on offline/online

parent 305b1a08
...@@ -664,9 +664,14 @@ QGCView { ...@@ -664,9 +664,14 @@ QGCView {
Component { Component {
id: removeAllPromptDialog id: removeAllPromptDialog
QGCViewMessage { QGCViewMessage {
message: qsTr("Are you sure you want to remove all items? This will also remove all items from the vehicle.") message: qsTr("Are you sure you want to remove all items? ") +
(_planMasterController.offline ? "" : qsTr("This will also remove all items from the vehicle."))
function accept() { function accept() {
masterController.removeAllFromVehicle() if (_planMasterController.offline) {
masterController.removeAll()
} else {
masterController.removeAllFromVehicle()
}
hideDialog() hideDialog()
} }
} }
......
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