fix(cpn): wrong input edit window title (#5947)

This commit is contained in:
Neil Horne
2025-02-26 12:19:38 +10:00
committed by GitHub
parent 088c8e2e35
commit 763603fe88
+1 -1
View File
@@ -49,7 +49,7 @@ ExpoDialog::ExpoDialog(QWidget *parent, ModelData & model, ExpoData *expoData, G
}
RawSourceType srcType = (firmware->getCapability(VirtualInputs) ? SOURCE_TYPE_VIRTUAL_INPUT : SOURCE_TYPE_INPUT);
setWindowTitle(tr("Edit %1").arg(RawSource(srcType, ed->chn).toString(&model, &generalSettings)));
setWindowTitle(tr("Edit %1").arg(RawSource(srcType, ed->chn + 1).toString(&model, &generalSettings)));
int imId = dialogFilteredItemModels->registerItemModel(new FilteredItemModel(sharedItemModels->getItemModel(AbstractItemModel::IMID_RawSource),
(RawSource::AllSourceGroups & ~RawSource::NoneGroup & ~RawSource::ScriptsGroup)),