[GRASS-SVN] r60593 - grass/branches/releasebranch_7_0/gui/wxpython/vnet
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 29 18:51:37 PDT 2014
Author: annakrat
Date: 2014-05-29 18:51:37 -0700 (Thu, 29 May 2014)
New Revision: 60593
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/vnet/dialogs.py
Log:
wxGUI/vnet: remove vnet toolbar from tool switching mechanism when vnet dialog closes to avoid PyDeadObjectError (merge from trunk, r60592)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/vnet/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/vnet/dialogs.py 2014-05-30 01:49:56 UTC (rev 60592)
+++ grass/branches/releasebranch_7_0/gui/wxpython/vnet/dialogs.py 2014-05-30 01:51:37 UTC (rev 60593)
@@ -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