浏览代码

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()