[GRASS-SVN] r60592 - grass/trunk/gui/wxpython/vnet

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 29 18:49:56 PDT 2014


Author: annakrat
Date: 2014-05-29 18:49:56 -0700 (Thu, 29 May 2014)
New Revision: 60592

Modified:
   grass/trunk/gui/wxpython/vnet/dialogs.py
Log:
wxGUI/vnet: remove vnet toolbar from tool switching mechanism when vnet dialog closes to avoid PyDeadObjectError

Modified: grass/trunk/gui/wxpython/vnet/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/vnet/dialogs.py	2014-05-29 23:27:47 UTC (rev 60591)
+++ grass/trunk/gui/wxpython/vnet/dialogs.py	2014-05-30 01:49:56 UTC (rev 60592)
@@ -746,6 +746,8 @@
     def OnCloseDialog(self, event):
         """!Cancel dialog"""
         self.vnet_mgr.CleanUp()
+        toolSwitcher = self.giface.GetMapDisplay().GetToolSwitcher()
+        toolSwitcher.RemoveToolbarFromGroup('mouseUse', self.toolbars['pointsList'])
         self.parent.dialogs['vnet'] = None
         self.Destroy()
 



More information about the grass-commit mailing list