소스 검색

wxGUI: correctly delete layertree, see https://trac.osgeo.org/grass/ticket/3505

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72455 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 7 년 전
부모
커밋
612eb97eb8
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      gui/wxpython/mapdisp/frame.py

+ 2 - 3
gui/wxpython/mapdisp/frame.py

@@ -848,10 +848,9 @@ class MapFrame(SingleMapFrame):
         elif self.page:
             pgnum = self.layerbook.GetPageIndex(self.page)
             if pgnum > -1:
-                self.layerbook.RemovePage(pgnum)
+                self._mgr.UnInit()
+                self.layerbook.DeletePage(pgnum)
         Debug.msg(2, "MapFrame.OnCloseWindow(): function ends")
-        self._mgr.UnInit()
-        self.Destroy()
 
     def Query(self, x, y):
         """Query selected layers.