[GRASS-SVN] r45264 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 31 14:30:34 EST 2011


Author: martinl
Date: 2011-01-31 11:30:33 -0800 (Mon, 31 Jan 2011)
New Revision: 45264

Modified:
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI: fix for missing toolbar variable


Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2011-01-31 08:31:10 UTC (rev 45263)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2011-01-31 19:30:33 UTC (rev 45264)
@@ -109,10 +109,11 @@
         if self.parent.GetName() == "GCPFrame":
             return
         
-        if self.parent.toolbars['vdigit']:
-            # update vdigit toolbar (unselect currently selected tool)
-            id = self.parent.toolbars['vdigit'].GetAction(type = 'id')
-            self.parent.toolbars['vdigit'].ToggleTool(id, False)
+        if hasattr(self.parent, 'toolbars'):
+            if self.parent.toolbars['vdigit']:
+                # update vdigit toolbar (unselect currently selected tool)
+                id = self.parent.toolbars['vdigit'].GetAction(type = 'id')
+                self.parent.toolbars['vdigit'].ToggleTool(id, False)
         
         if event:
             # deselect previously selected tool



More information about the grass-commit mailing list