Skip to content
Permalink
Browse files

fix plugin loading error caused by wrong usage of list comprehensions

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
alexander.bruy@gmail.com committed Jul 31, 2012
1 parent d71c7d8 commit e077b48263322aa02d6c7d443e36ada28c5aa469
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sextante/grass/DefineGrassRegionFromLayerAction.py
@@ -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:

0 comments on commit e077b48

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