[GRASS-SVN] r47245 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 26 10:01:48 EDT 2011


Author: martinl
Date: 2011-07-26 07:01:48 -0700 (Tue, 26 Jul 2011)
New Revision: 47245

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI/import: uncheck imported layers by default
             (merge r47243 from relbr64)


Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-07-26 14:00:21 UTC (rev 47244)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-07-26 14:01:48 UTC (rev 47245)
@@ -1169,6 +1169,7 @@
             name = output + '@' + grass.gisenv()['MAPSET']
         else:
             name = output
+        
         # add imported layers into layer tree
         if self.importType == 'gdal':
             cmd = ['d.rast',
@@ -1176,14 +1177,15 @@
             if UserSettings.Get(group='cmd', key='rasterOverlay', subkey='enabled'):
                 cmd.append('-o')
                 
-            item = maptree.AddLayer(ltype='raster',
-                                    lname=name,
-                                    lcmd=cmd)
+            item = maptree.AddLayer(ltype = 'raster',
+                                    lname = name, lchecked = False,
+                                    lcmd = cmd)
         else:
-            item = maptree.AddLayer(ltype='vector',
-                                    lname=name,
-                                    lcmd=['d.vect',
-                                          'map=%s' % name])
+            item = maptree.AddLayer(ltype = 'vector',
+                                    lname = name, lchecked = False,
+                                    lcmd = ['d.vect',
+                                            'map=%s' % name])
+        
         maptree.mapdisplay.MapWindow.ZoomToMap()
         
     def OnAbort(self, event):



More information about the grass-commit mailing list