diff --git a/companion/src/modelslist.cpp b/companion/src/modelslist.cpp index 443432a3c..8e5f82369 100644 --- a/companion/src/modelslist.cpp +++ b/companion/src/modelslist.cpp @@ -726,7 +726,7 @@ void TreeModel::refresh() protocol = model.moduleData[j].protocol; // These are the only RXs that allow nominating RX # but changing RX or copying models can leave residual configuration which can cause issues // if (protocol == PULSES_PXX_XJT_X16 || protocol == PULSES_PXX_XJT_LR12 || protocol == PULSES_PXX_R9M || protocol == PULSES_DSMX || protocol == PULSES_MULTIMODULE) { - if (!protocol == PULSES_OFF && model.moduleData[j].modelId > 0) { + if (protocol != PULSES_OFF && model.moduleData[j].modelId > 0) { if (!rxs.isEmpty()) { rxs.append(", "); } @@ -735,10 +735,6 @@ void TreeModel::refresh() if (!isModelIdUnique(mdlidx)) { current->setHighlightRX(true); } - ModelData & mdl = radioData->models[mdlidx-1]; - if (mdl.isEmpty()) { - current->setHighlightRX(true); - } } } current->setData(currentColumn++, rxs);