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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 12 23:08:55 EST 2009


Author: cmbarton
Date: 2009-01-12 23:08:55 -0500 (Mon, 12 Jan 2009)
New Revision: 35393

Modified:
   grass/trunk/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/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2009-01-13 04:07:48 UTC (rev 35392)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2009-01-13 04:08:55 UTC (rev 35393)
@@ -125,8 +125,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