Pārlūkot izejas kodu

wxGUI: fix gselect (OnDeleteItem), related to https://trac.osgeo.org/grass/changeset/32004

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32018 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 gadi atpakaļ
vecāks
revīzija
79895f9cb7
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      gui/wxpython/gui_modules/gselect.py

+ 1 - 0
gui/wxpython/gui_modules/gselect.py

@@ -74,6 +74,7 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
         self.seltree.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.mapsetCollapsed)
         self.seltree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.mapsetActivated)
         self.seltree.Bind(wx.EVT_TREE_SEL_CHANGED, self.mapsetSelected)
+        self.seltree.Bind(wx.EVT_TREE_DELETE_ITEM, lambda x: None)
 
     # the following dummy handler are needed to keep tree events from propagating up to
     # the parent GIS Manager layer tree