Skip to content

Commit

Permalink
Fix exception when editing multi layer parameter in model
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 16, 2017
1 parent b318aff commit aefd5cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -584,8 +584,12 @@ def setValue(self, value):
options = self._getOptions()
selected = []
for i, opt in enumerate(options):
if opt in value:
selected.append(i)
try:
if opt in value:
selected.append(i)
except TypeError:
if opt == value:
selected.append(i)
self.widget.setSelectedItems(selected)

def value(self):
Expand Down

0 comments on commit aefd5cc

Please sign in to comment.