Skip to content

Commit

Permalink
[processing] Fix exception when editing enum input with no default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 21, 2018
1 parent 6b5e5b6 commit b216326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/enummodelerwidget.py
Expand Up @@ -135,6 +135,8 @@ def setOptions(self, options):
model.appendRow(item)

def setDefault(self, indexes):
if indexes is None:
return
model = self.lstItems.model()
if not isinstance(indexes, (list, tuple)):
indexes = [indexes]
Expand Down

0 comments on commit b216326

Please sign in to comment.