[GRASS-dev] [GRASS GIS] #3607: Removing map layer crashes wxGUI
GRASS GIS
trac at osgeo.org
Thu Mar 26 03:57:11 PDT 2020
#3607: Removing map layer crashes wxGUI
------------------------+-----------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.3
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: remove layer, layer manager
CPU: OSX/Intel | Platform: MacOSX
------------------------+-----------------------------------------
Comment (by nila):
Replying to [comment:11 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)
>
> }}}
Brilliant, it works fine, thanks!
Will you put up a PR?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3607#comment:13>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list