Skip to content
Permalink
Browse files

Fix MultipleInputDialog with options not as (value, text) (#3882)

  • Loading branch information
arnaud-morvan authored and nirvn committed Dec 16, 2016
1 parent 6f87532 commit 17ac6acd4ee9e03015d92c6e47c71306a4a736da
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/gui/MultipleInputDialog.py
@@ -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

0 comments on commit 17ac6ac

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