[GRASS-SVN] r52847 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 23 00:20:49 PDT 2012


Author: lucadelu
Date: 2012-08-23 00:20:48 -0700 (Thu, 23 Aug 2012)
New Revision: 52847

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
Log:
small cosmetic change in error dialog of OnCreateMapset

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2012-08-23 07:14:38 UTC (rev 52846)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2012-08-23 07:20:48 UTC (rev 52847)
@@ -789,10 +789,9 @@
                 self.OnSelectLocation(None)
                 self.lbmapsets.SetSelection(self.listOfMapsets.index(mapset))
             except StandardError, e:
-                dlg = wx.MessageDialog(parent = self, message = _("Unable to create new mapset: %s") % e,
-                                       caption = _("Error"), style = wx.OK | wx.ICON_ERROR)
-                dlg.ShowModal()
-                dlg.Destroy()
+                GError(parent = self,
+                       message = _("Unable to create new mapset: %s") % e,
+                       showTraceback = False)
                 return False
         
         self.bstart.SetFocus()



More information about the grass-commit mailing list