mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -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)
|
||||
|
||||
def setDefault(self, indexes):
|
||||
if indexes is None:
|
||||
return
|
||||
model = self.lstItems.model()
|
||||
if not isinstance(indexes, (list, tuple)):
|
||||
indexes = [indexes]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user