[GRASS-SVN] r44506 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 2 00:07:58 EST 2010
Author: cmbarton
Date: 2010-12-01 21:07:58 -0800 (Wed, 01 Dec 2010)
New Revision: 44506
Modified:
grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
Fixes ugly exit bug that leaves wxnviz pages overlaying layer manager pages when wxnviz is exited. If this works on all systems, it should be backported to GRASS 6 branch.
Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py 2010-12-02 01:47:43 UTC (rev 44505)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py 2010-12-02 05:07:58 UTC (rev 44506)
@@ -1623,6 +1623,9 @@
self.parent.MapWindow.mouse['box'] = "point"
self.parent.MapWindow.polycoords = []
+ # return to map layer page (gets rid of ugly exit bug)
+ self.lmgr.notebook.SetSelection(0)
+
# disable the toolbar
self.parent.RemoveToolbar("nviz")
More information about the grass-commit
mailing list