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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 25 08:29:35 EST 2010


Author: martinl
Date: 2010-12-25 05:29:35 -0800 (Sat, 25 Dec 2010)
New Revision: 44715

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


Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2010-12-24 17:53:34 UTC (rev 44714)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2010-12-25 13:29:35 UTC (rev 44715)
@@ -198,8 +198,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