[GRASS-SVN] r47243 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 26 09:52:52 EDT 2011
Author: martinl
Date: 2011-07-26 06:52:52 -0700 (Tue, 26 Jul 2011)
New Revision: 47243
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI/import: uncheck imported layers by default
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py 2011-07-26 03:43:45 UTC (rev 47242)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py 2011-07-26 13:52:52 UTC (rev 47243)
@@ -1132,6 +1132,7 @@
name = output + '@' + grass.gisenv()['MAPSET']
else:
name = output
+
# add imported layers into layer tree
if self.importType == 'gdal':
cmd = ['d.rast',
@@ -1139,14 +1140,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