Skip to content

Commit 763603f

Browse files
authored
fix(cpn): wrong input edit window title (#5947)
1 parent 088c8e2 commit 763603f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

companion/src/modeledit/expodialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ExpoDialog::ExpoDialog(QWidget *parent, ModelData & model, ExpoData *expoData, G
4949
}
5050

5151
RawSourceType srcType = (firmware->getCapability(VirtualInputs) ? SOURCE_TYPE_VIRTUAL_INPUT : SOURCE_TYPE_INPUT);
52-
setWindowTitle(tr("Edit %1").arg(RawSource(srcType, ed->chn).toString(&model, &generalSettings)));
52+
setWindowTitle(tr("Edit %1").arg(RawSource(srcType, ed->chn + 1).toString(&model, &generalSettings)));
5353

5454
int imId = dialogFilteredItemModels->registerItemModel(new FilteredItemModel(sharedItemModels->getItemModel(AbstractItemModel::IMID_RawSource),
5555
(RawSource::AllSourceGroups & ~RawSource::NoneGroup & ~RawSource::ScriptsGroup)),

0 commit comments

Comments
 (0)