[GRASS-SVN] r64857 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 14 11:07:08 PDT 2015
Author: martinl
Date: 2015-03-14 11:07:08 -0700 (Sat, 14 Mar 2015)
New Revision: 64857
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: fix gselect OnClose() when called from Graphical Modeler
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2015-03-14 18:01:33 UTC (rev 64856)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2015-03-14 18:07:08 UTC (rev 64857)
@@ -2361,6 +2361,9 @@
self.OnClose()
def OnClose(self, event=None):
+ if not self.mapdisp:
+ return
+
switcher = self.mapdisp.GetToolSwitcher()
switcher.RemoveCustomToolFromGroup(self.buttonVecSelect.GetId())
if self._vectorSelect is not None:
More information about the grass-commit
mailing list