[GRASS-SVN] r68257 - grass/trunk/gui/wxpython/datacatalog

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 13 05:46:16 PDT 2016


Author: annakrat
Date: 2016-04-13 05:46:16 -0700 (Wed, 13 Apr 2016)
New Revision: 68257

Modified:
   grass/trunk/gui/wxpython/datacatalog/tree.py
Log:
wxGUI: fix datacatalog context menu

Modified: grass/trunk/gui/wxpython/datacatalog/tree.py
===================================================================
--- grass/trunk/gui/wxpython/datacatalog/tree.py	2016-04-13 03:20:44 UTC (rev 68256)
+++ grass/trunk/gui/wxpython/datacatalog/tree.py	2016-04-13 12:46:16 UTC (rev 68257)
@@ -690,8 +690,8 @@
     def _popupMenuLayer(self):
         """Create popup menu for layers"""
         menu = wx.Menu()
+        genv = gisenv()
         if self._restricted:
-            genv = gisenv()
             currentMapset = currentLocation = False
             if self.selected_location.label == genv['LOCATION_NAME']:
                 currentLocation = True



More information about the grass-commit mailing list