[GRASS-SVN] r35443 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 16 16:36:51 EST 2009
Author: martinl
Date: 2009-01-16 16:36:51 -0500 (Fri, 16 Jan 2009)
New Revision: 35443
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: fix variable name
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2009-01-16 20:06:27 UTC (rev 35442)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2009-01-16 21:36:51 UTC (rev 35443)
@@ -157,15 +157,15 @@
if not UserSettings.Get(group='cmd', key='overwrite', subkey='enabled') and \
outmap in listOfVectors:
- dlg = wx.MessageDialog(parent, message=_("Vector map <%s> already exists "
- "in the current mapset. "
- "Do you want to overwrite it?") % outmap,
- caption=_("Overwrite?"),
- style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
- if dlg.ShowModal() == wx.ID_YES:
+ dlgOw = wx.MessageDialog(parent, message=_("Vector map <%s> already exists "
+ "in the current mapset. "
+ "Do you want to overwrite it?") % outmap,
+ caption=_("Overwrite?"),
+ style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
+ if dlgOw.ShowModal() == wx.ID_YES:
cmd.append('--overwrite')
else:
- dlg.Destroy()
+ dlgOw.Destroy()
return False
if UserSettings.Get(group='cmd', key='overwrite', subkey='enabled') is True:
More information about the grass-commit
mailing list