[GRASS-SVN] r33757 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 8 06:35:10 EDT 2008


Author: martinl
Date: 2008-10-08 06:35:10 -0400 (Wed, 08 Oct 2008)
New Revision: 33757

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: fix welcome screen on first run (no .grassrcX available)
(merge from devbr6, r33756)


Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2008-10-08 10:31:43 UTC (rev 33756)
+++ grass/trunk/gui/wxpython/gis_set.py	2008-10-08 10:35:10 UTC (rev 33757)
@@ -24,6 +24,7 @@
 import sys
 import glob
 import shutil
+import copy
 
 ### i18N
 import gettext
@@ -566,7 +567,7 @@
                                     'location=%s' % locationName,
                                     'gisdbase=%s' % self.gisdbase],
                                    stderr=None)
-
+            
             for line in mapsets.ReadStdOutput():
                 self.listOfMapsetsSelectable += line.split(' ')
         except gcmd.CmdError:
@@ -576,7 +577,9 @@
                           "set=LOCATION_NAME=%s" % locationName])
             gcmd.Command(["g.gisenv",
                           "set=MAPSET=PERMANENT"])
-
+            # first run only
+            self.listOfMapsetsSelectable = copy.copy(self.listOfMapsets)
+        
         disabled = []
         idx = 0
         for mapset in self.listOfMapsets:



More information about the grass-commit mailing list