[GRASS-SVN] r39992 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 14 01:36:30 EST 2009


Author: cmbarton
Date: 2009-12-14 01:36:29 -0500 (Mon, 14 Dec 2009)
New Revision: 39992

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Fixes ticket #752. Option changing button disabled unless layer is selected. Backport from develbranch_6 r39991

Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2009-12-14 06:33:42 UTC (rev 39991)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2009-12-14 06:36:29 UTC (rev 39992)
@@ -1075,6 +1075,19 @@
         self.layer_selected = layer
         
         try:
+            if self.IsSelected(oldlayer):
+                self.SetItemWindowEnabled(oldlayer, True)
+            else:
+                self.SetItemWindowEnabled(oldlayer, False)
+
+            if self.IsSelected(layer):
+                self.SetItemWindowEnabled(layer, True)
+            else:
+                self.SetItemWindowEnabled(layer, False)
+        except:
+            pass
+
+        try:
             self.RefreshLine(oldlayer)
             self.RefreshLine(layer)
         except:



More information about the grass-commit mailing list