[GRASS-SVN] r36836 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 21 06:09:42 EDT 2009


Author: martinl
Date: 2009-04-21 06:09:42 -0400 (Tue, 21 Apr 2009)
New Revision: 36836

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: update dialog properties on show
       (merge from trunk, r36835)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2009-04-21 10:06:40 UTC (rev 36835)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2009-04-21 10:09:42 UTC (rev 36836)
@@ -811,10 +811,13 @@
         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
         



More information about the grass-commit mailing list