[GRASS-SVN] r39990 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 14 01:28:54 EST 2009
Author: cmbarton
Date: 2009-12-14 01:28:53 -0500 (Mon, 14 Dec 2009)
New Revision: 39990
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Fixes ticket #752. Option changing button disabled unless layer is selected
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py 2009-12-14 05:35:17 UTC (rev 39989)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py 2009-12-14 06:28:53 UTC (rev 39990)
@@ -1072,6 +1072,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