[GRASS-SVN] r61356 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 22 19:31:40 PDT 2014


Author: annakrat
Date: 2014-07-22 19:31:40 -0700 (Tue, 22 Jul 2014)
New Revision: 61356

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: check named region name for illegal characters only when saving the region

Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2014-07-23 02:09:40 UTC (rev 61355)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2014-07-23 02:31:40 UTC (rev 61356)
@@ -509,7 +509,8 @@
         
         box.Add(item=self._selection, proportion=0, flag=wx.ALIGN_CENTRE | wx.ALL, border=5)
         self._selection.SetFocus()
-        self._selection.Bind(wx.EVT_TEXT, self.OnRegion)
+        if self.loadsave == 'save':
+            self._selection.Bind(wx.EVT_TEXT, self.OnRegion)
         
         sizer.Add(item = box, proportion = 0, flag = wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
                   border = 5)



More information about the grass-commit mailing list