Skip to content

Commit

Permalink
[processing] show layers in alphabetical order in dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Dec 3, 2014
1 parent 2b37e40 commit e4c9a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -214,6 +214,7 @@ def getWidgetFromParameter(self, param):
if self.somethingDependsOnThisParameter(param) or self.alg.allowOnlyOpenedLayers:
item = QComboBox()
layers = dataobjects.getVectorLayers(param.shapetype)
layers.sort(key = lambda lay: lay.name())
if param.optional:
item.addItem(self.NOT_SELECTED, None)
for layer in layers:
Expand Down

0 comments on commit e4c9a20

Please sign in to comment.