[GRASS-SVN] r31367 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 15 17:55:16 EDT 2008


Author: martinl
Date: 2008-05-15 17:55:16 -0400 (Thu, 15 May 2008)
New Revision: 31367

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: fix disabling menu items, related to r31363

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2008-05-15 21:54:25 UTC (rev 31366)
+++ grass/trunk/gui/wxpython/wxgui.py	2008-05-15 21:55:16 UTC (rev 31367)
@@ -271,7 +271,7 @@
         self.menucmd[menuItem.GetId()] = gcmd
 
         if len(gcmd) > 0 and \
-                gcmd not in globalvar.grassCmd['all']:
+                gcmd.split()[0] not in globalvar.grassCmd['all']:
             menuItem.Enable (False)
 
         rhandler = eval(handler)



More information about the grass-commit mailing list