diff --git a/src/MissionManager/MissionCommandTree.cc b/src/MissionManager/MissionCommandTree.cc index d1e537cca40831d9b92e2d07a6ab8c5f03ef8a74..b77f8b7de209718673103a1a1ee240c22c333abe 100644 --- a/src/MissionManager/MissionCommandTree.cc +++ b/src/MissionManager/MissionCommandTree.cc @@ -223,11 +223,15 @@ QVariantList MissionCommandTree::getCommandsForCategory(Vehicle* vehicle, const { MAV_AUTOPILOT baseFirmwareType; MAV_TYPE baseVehicleType; - QList supportedCommands = vehicle->firmwarePlugin()->supportedMissionCommands(); _baseVehicleInfo(vehicle, baseFirmwareType, baseVehicleType); _buildAllCommands(vehicle); + // vehicle can be null in which case _baseVehicleInfo will tell of the firmware/vehicle type for the offline editing vehicle. + // We then use that to get a firmware plugin so we can get the list of supported commands. + FirmwarePlugin* firmwarePlugin = qgcApp()->toolbox()->firmwarePluginManager()->firmwarePluginForAutopilot(baseFirmwareType, baseVehicleType); + QList supportedCommands = firmwarePlugin->supportedMissionCommands(); + QVariantList list; QMap commandMap = _allCommands[baseFirmwareType][baseVehicleType]; for (MAV_CMD command: commandMap.keys()) { diff --git a/src/QmlControls/ParameterEditorDialog.qml b/src/QmlControls/ParameterEditorDialog.qml index d38c6b1ed88302f28943258d651af9e6c57f0b1d..c5f92b8dc524477c55ee73e75e958a0660b38da1 100644 --- a/src/QmlControls/ParameterEditorDialog.qml +++ b/src/QmlControls/ParameterEditorDialog.qml @@ -232,7 +232,7 @@ QGCViewDialog { QGCLabel { visible: fact.qgcRebootRequired - text: "Appliction restart required after change" + text: "Application restart required after change" } QGCLabel {