Procházet zdrojové kódy

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.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44506 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton před 14 roky
rodič
revize
1f8352f98b
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      gui/wxpython/gui_modules/toolbars.py

+ 3 - 0
gui/wxpython/gui_modules/toolbars.py

@@ -1623,6 +1623,9 @@ class NvizToolbar(AbstractToolbar):
         self.parent.MapWindow.mouse['box'] = "point"
         self.parent.MapWindow.mouse['box'] = "point"
         self.parent.MapWindow.polycoords = []
         self.parent.MapWindow.polycoords = []
         
         
+        # return to map layer page (gets rid of ugly exit bug)
+        self.lmgr.notebook.SetSelection(0)
+
         # disable the toolbar
         # disable the toolbar
         self.parent.RemoveToolbar("nviz")
         self.parent.RemoveToolbar("nviz")