[GRASS-SVN] r42998 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 4 08:10:41 EDT 2010
Author: martinl
Date: 2010-08-04 12:10:41 +0000 (Wed, 04 Aug 2010)
New Revision: 42998
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: create new vector map - don't fail if vector map already exists
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-08-04 12:07:04 UTC (rev 42997)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-08-04 12:10:41 UTC (rev 42998)
@@ -254,10 +254,10 @@
message=_("Unable to create vector map <%s>.") % outmap,
caption=_("Error"),
style=wx.ID_OK | wx.ICON_ERROR | wx.CENTRE)
- return False
+ return (None, None)
if outmap == '': # should not happen
- return False
+ return (None, None)
cmd[1][cmd[2]] = outmap
@@ -278,7 +278,7 @@
overwrite = True
else:
dlgOw.Destroy()
- return False
+ return (None, None)
if UserSettings.Get(group='cmd', key='overwrite', subkey='enabled') is True:
overwrite = True
@@ -290,7 +290,7 @@
except gcmd.GException, e:
gcmd.GError(parent = self,
message = e)
- return None
+ return (None, None)
#
# create attribute table
@@ -307,7 +307,7 @@
parent = parent,
input = '-',
stdin = sql)
-
+
gcmd.RunCommand('v.db.connect',
quiet = True,
parent = parent,
More information about the grass-commit
mailing list