[GRASS-SVN] r35444 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 16 16:38:15 EST 2009


Author: martinl
Date: 2009-01-16 16:38:15 -0500 (Fri, 16 Jan 2009)
New Revision: 35444

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: fix variable name
       (merge from trunk, r35443)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2009-01-16 21:36:51 UTC (rev 35443)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2009-01-16 21:38:15 UTC (rev 35444)
@@ -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