Browse Source

wxGUI/gselect: disable filter on full match (see https://trac.osgeo.org/grass/ticket/1251)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44715 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 years ago
parent
commit
295603320a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      gui/wxpython/gui_modules/gselect.py

+ 6 - 2
gui/wxpython/gui_modules/gselect.py

@@ -198,8 +198,12 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
         else:
         else:
             selected = None
             selected = None
             exclude  = False
             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)
         self.GetElementList(selected, exclude)
         
         
     def GetElementList(self, elements = None, exclude = False):
     def GetElementList(self, elements = None, exclude = False):