Re: [GRASS GIS] #3607: Removing map layer crashes wxGUI

"GRASS GIS" <[email protected]>
Newsgroups gmane.comp.gis.grass.devel
Message-ID <[email protected]>
#3607: Removing map layer crashes wxGUI
------------------------+-----------------------------------------
  Reporter:  cmbarton   |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  7.4.5
 Component:  wxGUI      |    Version:  7.4.0
Resolution:             |   Keywords:  remove layer, layer manager
       CPU:  OSX/Intel  |   Platform:  MacOSX
------------------------+-----------------------------------------

Comment (by annakrat):

 Thanks for the detailed analysis. I can't test but this might work:


 {{{
 diff --git a/gui/wxpython/lmgr/layertree.py
 b/gui/wxpython/lmgr/layertree.py
 index 52c20dcc0..b2b39c613 100644
 --- a/gui/wxpython/lmgr/layertree.py
 +++ b/gui/wxpython/lmgr/layertree.py
 @@ -421,7 +421,7 @@ class LayerTree(treemixin.DragAndDrop,
 CT.CustomTreeCtrl):
              # select the layer in the same way as right click
              if not self.IsSelected(layer):
                  self.DoSelectItem(layer, True, False)
 -            self.OnLayerContextMenu(event)
 +            wx.CallAfter(self.OnLayerContextMenu, event)

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3607#comment:11>
GRASS GIS <https://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.