Kaynağa Gözat

wxGUI: update dialog properties on show

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36835 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 yıl önce
ebeveyn
işleme
3467da46fa
1 değiştirilmiş dosya ile 6 ekleme ve 3 silme
  1. 6 3
      gui/wxpython/gui_modules/wxgui_utils.py

+ 6 - 3
gui/wxpython/gui_modules/wxgui_utils.py

@@ -811,10 +811,13 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         if self.GetPyData(layer)[0].has_key('propwin') and \
                 self.GetPyData(layer)[0]['propwin'] is not None:
             # recycle GUI dialogs
-            if self.GetPyData(layer)[0]['propwin'].IsShown():
-                self.GetPyData(layer)[0]['propwin'].SetFocus()
+            win = self.GetPyData(layer)[0]['propwin']
+            # update properties (columns, layers)
+            win.notebookpanel.OnUpdateSelection(None)
+            if win.IsShown():
+                win.SetFocus()
             else:
-                self.GetPyData(layer)[0]['propwin'].Show()
+                win.Show()
             
             return