[GRASS-SVN] r51020 - grass/branches/develbranch_6/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 9 04:51:54 EST 2012


Author: martinl
Date: 2012-03-09 01:51:54 -0800 (Fri, 09 Mar 2012)
New Revision: 51020

Modified:
   grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py
Log:
wxGUI/vdigit: hide buggy 'undo' in GRASS 6 (try GRASS 7 for major improvements)


Modified: grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py	2012-03-07 22:12:18 UTC (rev 51019)
+++ grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py	2012-03-09 09:51:54 UTC (rev 51020)
@@ -66,6 +66,8 @@
         
         # disable undo/redo
         self.EnableTool(self.undo, False)
+        ### hide undo - this tool is quite buggy in GRASS 6 
+        self.RemoveTool(self.undo) 
         
         # toogle to pointer by default
         self.OnTool(None)
@@ -349,6 +351,9 @@
         
         @param enable False for disable
         """
+        if not self.FindById(self.undo):
+            return
+        
         if enable:
             if self.GetToolEnabled(self.undo) is False:
                 self.EnableTool(self.undo, True)



More information about the grass-commit mailing list