Skip to content

Commit 17ac6ac

Browse files
arnaud-morvannirvn
authored andcommittedDec 16, 2016
Fix MultipleInputDialog with options not as (value, text) (#3882)
1 parent 6f87532 commit 17ac6ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎python/plugins/processing/gui/MultipleInputDialog.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ def __init__(self, options, selectedoptions=None):
4646

4747
self.lstLayers.setSelectionMode(QAbstractItemView.NoSelection)
4848

49-
self.options = options
49+
self.options = []
50+
for i, option in enumerate(options):
51+
if option is None or isinstance(option, basestring):
52+
self.options.append((i, option))
53+
else:
54+
self.options.append((option[0], option[1]))
55+
5056
self.selectedoptions = selectedoptions or []
5157

5258
# Additional buttons

0 commit comments

Comments
 (0)
Please sign in to comment.