Fixes #50963 : Index already passed don't call findText

This commit is contained in:
Nicolas Godet 2022-11-23 08:12:48 +01:00 committed by Nyall Dawson
parent ed3483edb1
commit 7b80b30c2a

View File

@ -169,7 +169,7 @@ class InterpolationDataWidget(BASE, WIDGET):
self._addLayerData(v[0], field_name)
comboBox = self.layersTree.itemWidget(self.layersTree.topLevelItem(i), 2)
comboBox.setCurrentIndex(comboBox.findText((int(v[3]))))
comboBox.setCurrentIndex((int(v[3])))
self.hasChanged.emit()