فهرست منبع

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á 11 سال پیش
والد
کامیت
1d2ece81e0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)