瀏覽代碼

wxGUI: fix datacatalog context menu

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68257 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父節點
當前提交
79e456e6d4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/datacatalog/tree.py

+ 1 - 1
gui/wxpython/datacatalog/tree.py

@@ -690,8 +690,8 @@ class DataCatalogTree(LocationMapTree):
     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