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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 25 08:47:11 EST 2010


Author: martinl
Date: 2010-12-25 05:47:11 -0800 (Sat, 25 Dec 2010)
New Revision: 44716

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI/gselect: disable filter on full match (see #1251)
(merge r44715 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py	2010-12-25 13:29:35 UTC (rev 44715)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py	2010-12-25 13:47:11 UTC (rev 44716)
@@ -197,8 +197,12 @@
         else:
             selected = None
             exclude  = False
-            
-        self.SetFilter(self._startsWith)   
+        
+        text = self.GetCombo().GetValue().strip()
+        if grass.find_file(name = text, element = self.type)['fullname']:
+            self.SetFilter(None)
+        else:
+            self.SetFilter(self._startsWith)   
         self.GetElementList(selected, exclude)
         
     def GetElementList(self, elements = None, exclude = False):



More information about the grass-commit mailing list