[GRASS-SVN] r66783 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 11 07:41:40 PST 2015


Author: martinl
Date: 2015-11-11 07:41:40 -0800 (Wed, 11 Nov 2015)
New Revision: 66783

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: fix menu when vector map open for editing (bgmap is currently disabled)


Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2015-11-11 15:38:00 UTC (rev 66782)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2015-11-11 15:41:40 UTC (rev 66783)
@@ -6,7 +6,7 @@
 Classes:
  - layertree::LayerTree
 
-(C) 2007-2014 by the GRASS Development Team
+(C) 2007-2015 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -562,10 +562,10 @@
                 vdigitLayer = digitToolbar.GetLayer()
                 if vdigitLayer is layer:
                     self.popupMenu.Enable(self.popupID['remove'], False)
-                    self.popupMenu.Enable(self.popupID['bgmap'],  False)
+                    # self.popupMenu.Enable(self.popupID['bgmap'],  False)
                     self.popupMenu.Enable(self.popupID['topo'],   False)
-                else:
-                    self.popupMenu.Enable(self.popupID['bgmap'], True)
+                # else:
+                ###    self.popupMenu.Enable(self.popupID['bgmap'], True)
             
             item = wx.MenuItem(self.popupMenu, id = self.popupID['meta'], text = _("Metadata"))
             item.SetBitmap(MetaIcon(img = 'layer-info').GetBitmap(self.bmpsize))



More information about the grass-commit mailing list