Skip to content
Snippets Groups Projects
Commit a5ed9bbb authored by Jacob Walser's avatar Jacob Walser
Browse files

Remove prerequisiteSetup checks from APMLightsComponent and APMSubFrameComponent

parent 01acf492
No related branches found
No related tags found
No related merge requests found
......@@ -65,12 +65,5 @@ QUrl APMLightsComponent::summaryQmlSource(void) const
QString APMLightsComponent::prerequisiteSetup(void) const
{
APMAutoPilotPlugin* plugin = dynamic_cast<APMAutoPilotPlugin*>(_autopilot);
Q_ASSERT(plugin);
if (!plugin->airframeComponent()->setupComplete()) {
return plugin->airframeComponent()->name();
}
return QString();
}
......@@ -67,12 +67,5 @@ QUrl APMSubFrameComponent::summaryQmlSource(void) const
QString APMSubFrameComponent::prerequisiteSetup(void) const
{
APMAutoPilotPlugin* plugin = dynamic_cast<APMAutoPilotPlugin*>(_autopilot);
Q_ASSERT(plugin);
if (!plugin->airframeComponent()->setupComplete()) {
return plugin->airframeComponent()->name();
}
return QString();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment