[GRASS-SVN] r48860 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 19 15:39:24 EDT 2011
Author: martinl
Date: 2011-10-19 12:39:24 -0700 (Wed, 19 Oct 2011)
New Revision: 48860
Modified:
grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: don't open mcalc builder when running modeler
Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py 2011-10-19 19:24:28 UTC (rev 48859)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py 2011-10-19 19:39:24 UTC (rev 48860)
@@ -794,7 +794,8 @@
cmd = text.strip().split(' ')[0]
if not self.cmdDesc or cmd != self.cmdDesc.get_name():
- if cmd in ('r.mapcalc', 'r3.mapcalc'):
+ if cmd in ('r.mapcalc', 'r3.mapcalc') and \
+ self.parent.parent.GetName() == 'LayerManager':
self.parent.parent.OnMapCalculator(event = None, cmd = [cmd])
# add command to history & clean prompt
self.UpdateCmdHistory([cmd])
More information about the grass-commit
mailing list