Skip to content
Permalink
Browse files

Fix exception when editing multi layer parameter in model

  • Loading branch information
nyalldawson committed Aug 16, 2017
1 parent b318aff commit aefd5cce30974a0b32733d2ba20d3c3e571899a3
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/gui/wrappers.py
@@ -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):

0 comments on commit aefd5cc

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