From 69ba969bd13f083202a4c7c055dec25490e281a9 Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Sun, 16 Mar 2014 10:32:54 +0100 Subject: [PATCH] Inputs tab hidden when not applicable (Fixes #795) --- companion/src/modeledit/modeledit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/modeledit/modeledit.cpp b/companion/src/modeledit/modeledit.cpp index efc953736..c74eeb014 100644 --- a/companion/src/modeledit/modeledit.cpp +++ b/companion/src/modeledit/modeledit.cpp @@ -27,7 +27,8 @@ ModelEdit::ModelEdit(RadioData & radioData, int modelId, bool openWizard, bool i addTab(new Setup(this, model), tr("Setup")); addTab(new HeliPanel(this, model), tr("Heli")); addTab(new FlightModes(this, model, radioData.generalSettings), tr("Flight Modes")); - addTab(new InputsPanel(this, model, radioData.generalSettings), tr("Inputs")); + if (GetEepromInterface()->getCapability(VirtualInputs)) + addTab(new InputsPanel(this, model, radioData.generalSettings), tr("Inputs")); addTab(new MixesPanel(this, model, radioData.generalSettings), tr("Mixes")); addTab(new Channels(this, model), tr("Channels")); addTab(new LogicalSwitchesPanel(this, model), tr("Logical Switches"));