Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
79e456e6d4
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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