Skip to content

Commit

Permalink
Fix MultipleInputDialog with options not as (value, text) (#3882)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan authored and nirvn committed Dec 16, 2016
1 parent 6f87532 commit 17ac6ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/processing/gui/MultipleInputDialog.py
Expand Up @@ -46,7 +46,13 @@ def __init__(self, options, selectedoptions=None):

self.lstLayers.setSelectionMode(QAbstractItemView.NoSelection)

self.options = options
self.options = []
for i, option in enumerate(options):
if option is None or isinstance(option, basestring):
self.options.append((i, option))
else:
self.options.append((option[0], option[1]))

self.selectedoptions = selectedoptions or []

# Additional buttons
Expand Down

0 comments on commit 17ac6ac

Please sign in to comment.