mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
[processing] Fix exception when editing enum input with no default value
This commit is contained in:
parent
6b5e5b6ed5
commit
b21632602f
@ -135,6 +135,8 @@ class EnumModelerWidget(BASE, WIDGET):
|
|||||||
model.appendRow(item)
|
model.appendRow(item)
|
||||||
|
|
||||||
def setDefault(self, indexes):
|
def setDefault(self, indexes):
|
||||||
|
if indexes is None:
|
||||||
|
return
|
||||||
model = self.lstItems.model()
|
model = self.lstItems.model()
|
||||||
if not isinstance(indexes, (list, tuple)):
|
if not isinstance(indexes, (list, tuple)):
|
||||||
indexes = [indexes]
|
indexes = [indexes]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user