Skip to content
Permalink
Browse files

[processing] Fix exception when editing enum input with no default value

  • Loading branch information
nyalldawson committed May 21, 2018
1 parent 6b5e5b6 commit b21632602fd9842c348ffb98a09810fa1c5355c9
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/gui/enummodelerwidget.py
@@ -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]

0 comments on commit b216326

Please sign in to comment.
You can’t perform that action at this time.