fix(cpn): autocombobox setModel (#7601)

This commit is contained in:
Neil Horne
2026-08-02 09:58:39 +10:00
committed by GitHub
parent 40d5a84636
commit 2520c9041b
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -1103,6 +1103,5 @@ void ModulePanel::updateTrainerModeItemModel()
trainerModeItemModel = new FilteredItemModel(model->trainerModeItemModel(generalSettings, firmware));
ui->trainerMode->setModel(trainerModeItemModel);
ui->trainerMode->updateValue();
}
}
+1 -1
View File
@@ -158,7 +158,7 @@ void AutoComboBox::setFieldInit(GenericPanel * panel)
void AutoComboBox::setModel(QAbstractItemModel * model)
{
if (model && QComboBox::model() != model) {
if (model) {
setLock(true);
QComboBox::setModel(model);
setLock(false);