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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 29 13:28:19 EDT 2009


Author: martinl
Date: 2009-09-29 13:28:19 -0400 (Tue, 29 Sep 2009)
New Revision: 39331

Modified:
   grass/trunk/gui/wxpython/gui_modules/help.py
Log:
wxGUI: fix menu tree window


Modified: grass/trunk/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/help.py	2009-09-29 17:16:14 UTC (rev 39330)
+++ grass/trunk/gui/wxpython/gui_modules/help.py	2009-09-29 17:28:19 UTC (rev 39331)
@@ -232,6 +232,11 @@
                 self.tree.ToggleItemSelection(itemSelected)
             self.tree.itemSelected = None
 
+        if self.tree.itemSelected:
+            self.btnRun.Enable()
+        else:
+            self.btnRun.Enable(False)
+
     def OnUpdateStatusBar(self, event):
         """!Update statusbar text"""
         element = self.searchDict[self.searchBy.GetStringSelection()]
@@ -245,12 +250,6 @@
         else:
             self.statusbar.SetStatusText("", 0)
         
-        if nItems > 0:
-            self.tree.itemSelected = self.tree.itemsMarked[0]
-            self.btnRun.Enable()
-        else:
-            self.btnRun.Enable(False)
-        
         event.Skip()
         
     def SearchItems(self, element, value):



More information about the grass-commit mailing list