浏览代码

Fix so mapsets can be seen and selected. Backport from develbranch_6 https://trac.osgeo.org/grass/changeset/39933

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39934 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 15 年之前
父节点
当前提交
6c3985e231
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      gui/wxpython/gui_modules/gdialogs.py

+ 2 - 3
gui/wxpython/gui_modules/gdialogs.py

@@ -133,9 +133,8 @@ class LocationDialog(ElementDialog):
         self.sizer.Fit(self)
         self.sizer.Fit(self)
 
 
     def OnElement(self, event):
     def OnElement(self, event):
-        """!Name for vector map layer given"""
+        """!Select mapset given location name"""
         location = event.GetString()
         location = event.GetString()
-        mapset   = self.element1.GetValue()
         
         
         if location:
         if location:
             dbase = grass.gisenv()['GISDBASE']
             dbase = grass.gisenv()['GISDBASE']
@@ -150,7 +149,7 @@ class LocationDialog(ElementDialog):
 
 
     def GetValues(self):
     def GetValues(self):
         """!Get location, mapset"""
         """!Get location, mapset"""
-        return (self.GetElement(), self.element1.GetValue())
+        return (self.GetElement(), self.element1.GetStringSelection())
     
     
 class MapsetDialog(ElementDialog):
 class MapsetDialog(ElementDialog):
     """!Dialog used to select mapset"""
     """!Dialog used to select mapset"""