瀏覽代碼

wxGUI: don't crash when closing map display
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33111)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33113 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 年之前
父節點
當前提交
0478c61ae3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      gui/wxpython/gui_modules/mapdisp.py

+ 3 - 3
gui/wxpython/gui_modules/mapdisp.py

@@ -3205,9 +3205,9 @@ class MapFrame(wx.Frame):
             if pgnum > -1:
                 self.layerbook.DeletePage(pgnum)
         
-        #self.Destroy()
-        if event:
-            event.Skip()
+        ### self.Destroy()
+        # if event:
+        #    event.Skip() <- causes application crash
         
     def GetRender(self):
         """