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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 19 17:27:01 PST 2014


Author: annakrat
Date: 2014-02-19 17:27:01 -0800 (Wed, 19 Feb 2014)
New Revision: 59097

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: creating tmp file (enter values interactively) in m.proj is fixed, before it created a file '-' when text was entered

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2014-02-19 18:47:31 UTC (rev 59096)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2014-02-20 01:27:01 UTC (rev 59097)
@@ -1893,7 +1893,7 @@
         win = self.FindWindowById(p['wxId'][0])
         if text:
             filename = win.GetValue()
-            if not filename:
+            if not filename or filename == p['default']:  # m.proj has - as default
                 filename = grass.tempfile()
                 win.SetValue(filename)
                 



More information about the grass-commit mailing list