diff --git a/src/PlanView/PlanView.qml b/src/PlanView/PlanView.qml index 83cc5a9b60dd7c31a1090a0b09cdc1bb0abaf6cc..2de56d79bca9e0a16a10c54d54009352eddaf906 100644 --- a/src/PlanView/PlanView.qml +++ b/src/PlanView/PlanView.qml @@ -664,9 +664,14 @@ QGCView { Component { id: removeAllPromptDialog 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() { - masterController.removeAllFromVehicle() + if (_planMasterController.offline) { + masterController.removeAll() + } else { + masterController.removeAllFromVehicle() + } hideDialog() } }