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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 14 01:33:43 EST 2009


Author: cmbarton
Date: 2009-12-14 01:33:42 -0500 (Mon, 14 Dec 2009)
New Revision: 39991

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2009-12-14 06:28:53 UTC (rev 39990)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2009-12-14 06:33:42 UTC (rev 39991)
@@ -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