mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix exception when editing multi layer parameter in model
This commit is contained in:
parent
b318aff6ff
commit
aefd5cce30
@ -584,8 +584,12 @@ class MultipleInputWidgetWrapper(WidgetWrapper):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user