Browse Source

wxGUI/vnet: remove vnet toolbar from tool switching mechanism when vnet dialog closes to avoid PyDeadObjectError (merge from trunk, https://trac.osgeo.org/grass/changeset/60592)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60593 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
0616ca28a2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/vnet/dialogs.py

+ 2 - 0
gui/wxpython/vnet/dialogs.py

@@ -746,6 +746,8 @@ class VNETDialog(wx.Dialog):
     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()