Browse Source

wxGUI: attempt to fix https://trac.osgeo.org/grass/ticket/2650 (merge from trunk, https://trac.osgeo.org/grass/changeset/65027)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65028 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 years ago
parent
commit
510c089752
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/gui_core/forms.py

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

@@ -1329,6 +1329,7 @@ class CmdPanel(wx.Panel):
                     selection = gselect.SignatureSelect(parent = which_panel, element = p.get('element', 'sig'))
                     p['wxId'] = [ selection.GetId() ]
                     selection.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     which_sizer.Add(item = selection, proportion = 0,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     border = 5)
@@ -1340,6 +1341,7 @@ class CmdPanel(wx.Panel):
                     win.SetValue(value)
                     p['wxId'] = [ win.GetId() ]
                     win.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    win.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     which_sizer.Add(item = win, proportion = 0,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     border = 5)