Explorar o código

wxGUI/forms: creating tmp file (enter values interactively) in m.proj is fixed, before it created a file '-' when text was entered

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59097 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=11) %!d(string=hai) anos
pai
achega
1d2ece81e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -1893,7 +1893,7 @@ class CmdPanel(wx.Panel):
         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)