[GRASS-SVN] r54025 - grass/trunk/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 25 02:54:32 PST 2012
Author: annakrat
Date: 2012-11-25 02:54:32 -0800 (Sun, 25 Nov 2012)
New Revision: 54025
Modified:
grass/trunk/gui/wxpython/modules/mcalc_builder.py
Log:
wxGUI/mapcalc: do not load layer if command failed
Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py 2012-11-25 10:44:05 UTC (rev 54024)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py 2012-11-25 10:54:32 UTC (rev 54025)
@@ -510,7 +510,7 @@
def OnDone(self, cmd, returncode):
"""!Add create map to the layer tree"""
- if not self.addbox.IsChecked():
+ if not self.addbox.IsChecked() or returncode != 0:
return
name = self.newmaptxt.GetValue().strip(' "') + '@' + grass.gisenv()['MAPSET']
mapTree = self.parent.GetLayerTree()
More information about the grass-commit
mailing list