[GRASS-SVN] r35392 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 12 23:07:48 EST 2009


Author: cmbarton
Date: 2009-01-12 23:07:48 -0500 (Mon, 12 Jan 2009)
New Revision: 35392

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
Log:
Fix bug that throws bogus error message to console if you try to change the name of a previously selected GIS element using the tree combobox.

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py	2009-01-13 03:53:48 UTC (rev 35391)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py	2009-01-13 04:07:48 UTC (rev 35392)
@@ -124,8 +124,11 @@
             if not root:
                 return
             item = self.FindItem(root, self.value[0])
-            self.seltree.EnsureVisible(item)
-            self.seltree.SelectItem(item)
+            try:
+                self.seltree.EnsureVisible(item)
+                self.seltree.SelectItem(item)
+            except:
+                pass
             
     def SetStringValue(self, value):
         # this assumes that item strings are unique...



More information about the grass-commit mailing list