浏览代码

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 年之前
父节点
当前提交
295603320a
共有 1 个文件被更改,包括 6 次插入2 次删除
  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:
             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):