[GRASS-SVN] r32548 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 5 17:06:13 EDT 2008
Author: martinl
Date: 2008-08-05 17:06:13 -0400 (Tue, 05 Aug 2008)
New Revision: 32548
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: disable undo (fix first)
merge from trunk, r32546
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py 2008-08-05 21:02:57 UTC (rev 32547)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py 2008-08-05 21:06:13 UTC (rev 32548)
@@ -608,13 +608,16 @@
@param enable False for disable
"""
- if enable:
- if self.toolbar[0].GetToolEnabled(self.undo) is False:
- self.toolbar[0].EnableTool(self.undo, True)
- else:
- if self.toolbar[0].GetToolEnabled(self.undo) is True:
- self.toolbar[0].EnableTool(self.undo, False)
-
+ ### fix undo first...
+
+ # if enable:
+ # if self.toolbar[0].GetToolEnabled(self.undo) is False:
+ # self.toolbar[0].EnableTool(self.undo, True)
+ # else:
+ # if self.toolbar[0].GetToolEnabled(self.undo) is True:
+ # self.toolbar[0].EnableTool(self.undo, False)
+ pass
+
def OnSettings(self, event):
"""Show settings dialog"""
More information about the grass-commit
mailing list