Skip to content

Commit

Permalink
fix plugin loading error caused by wrong usage of list comprehensions
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@324 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
alexander.bruy@gmail.com committed Jul 31, 2012
1 parent d71c7d8 commit e077b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sextante/grass/DefineGrassRegionFromLayerAction.py
Expand Up @@ -18,7 +18,7 @@ def getIcon(self):

def execute(self):
layers = QGisLayers.getAllLayers();
layersMap = {layer.name() : layer for layer in layers}
layersMap = dict([(layer.name(), layer) for layer in layers])
layerNames = [layer.name() for layer in layers]
item, ok = QtGui.QInputDialog.getItem(None, "Select a layer", "Layer selection", layerNames, editable=False)
if ok:
Expand Down

0 comments on commit e077b48

Please sign in to comment.