Explorar o código

wxGUI/lmgr: attempt to fix tree selection

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52577 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=13) %!d(string=hai) anos
pai
achega
3bbbb7c36b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/lmgr/layertree.py

+ 1 - 1
gui/wxpython/lmgr/layertree.py

@@ -1133,7 +1133,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
                     # ignore when map layer is edited
                     self.Map.ChangeLayerActive(mapLayer, checked)
         
-        self.Unselect()
+        self.SelectItem(item, False)
         
         # update progress bar range (mapwindow statusbar)
         self.mapdisplay.GetProgressBar().SetRange(len(self.Map.GetListOfLayers(l_active = True)))