Browse Source

wxGUI: fix mapset access dialog

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35837 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
944b8d44d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gui/wxpython/gui_modules/preferences.py

+ 2 - 2
gui/wxpython/gui_modules/preferences.py

@@ -1795,14 +1795,14 @@ class CheckListMapset(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Check
         locationPath = os.path.join(gisenv['GISDBASE'], gisenv['LOCATION_NAME'])
 
         ret = gcmd.RunCommand('g.mapsets',
+                              parent = self,
                               flags = 'l',
                               fs = '|',
                               read = True)
-        ret = ret.rstrip('\n')
         
         mapsets = []
         if ret:
-            mapsets = ret.split('|')
+            mapsets = ret.rstrip('\n').split('|')
         
         for mapset in mapsets:
             index = self.InsertStringItem(sys.maxint, mapset)