mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix MultipleInputDialog with options not as (value, text) (#3882)
This commit is contained in:
parent
6f87532ac7
commit
17ac6acd4e
@ -46,7 +46,13 @@ class MultipleInputDialog(BASE, WIDGET):
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user