소스 검색

wxGUI: do not some commands in choice widget (search module)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48164 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 년 전
부모
커밋
26d771828f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gui/wxpython/gui_modules/prompt.py

+ 2 - 1
gui/wxpython/gui_modules/prompt.py

@@ -547,7 +547,8 @@ class GPrompt(object):
         for prefix in prefixes:
             for command in mList[prefix]:
                 name = prefix + '.' + command
-                items.append(name)
+                if name not in items:
+                    items.append(name)
                 
         items.sort()