浏览代码

wxGUI/gselect: don't ingored set value for GdalSelect

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67279 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
f1c070d3a8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      gui/wxpython/gui_core/forms.py

+ 3 - 0
gui/wxpython/gui_core/forms.py

@@ -1695,6 +1695,9 @@ class CmdPanel(wx.Panel):
                                  win.fileWidgets['browse'].GetChildren()[1].GetId(),
                                  win.fileWidgets['browse'].GetChildren()[1].GetId(),
                                  win.dirWidgets['browse'].GetChildren()[1].GetId(),
                                  win.dirWidgets['browse'].GetChildren()[1].GetId(),
                                  win.dbWidgets['choice'].GetId()]
                                  win.dbWidgets['choice'].GetId()]
+                    value = self._getValue(p)
+                    if value:
+                        win.fileWidgets['browse'].GetChildren()[1].SetValue(value) # parameter previously set
                     which_sizer.Add(item = win, proportion = 0,
                     which_sizer.Add(item = win, proportion = 0,
                                     flag = wx.EXPAND)
                                     flag = wx.EXPAND)