[GRASS-SVN] r64275 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 21 08:56:23 PST 2015
Author: martinl
Date: 2015-01-21 08:56:23 -0800 (Wed, 21 Jan 2015)
New Revision: 64275
Modified:
grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: don't select new map layer in the layer tree when it's not active
Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py 2015-01-21 15:07:14 UTC (rev 64274)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py 2015-01-21 16:56:23 UTC (rev 64275)
@@ -1052,7 +1052,7 @@
selectedLayer = self.GetSelectedLayer()
# deselect active item
- if selectedLayer:
+ if lchecked != False and selectedLayer:
self.SelectItem(selectedLayer, select=False)
Debug.msg (3, "LayerTree().AddLayer(): ltype=%s" % (ltype))
@@ -1197,7 +1197,8 @@
None))
# select new item
- self.SelectItem(layer, select = True)
+ if lchecked != False:
+ self.SelectItem(layer, select = True)
# use predefined layer name if given
if lname:
More information about the grass-commit
mailing list