Procházet zdrojové kódy

wxGUI: fix after removing g.mlist

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62027 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová před 10 roky
rodič
revize
bd98dce6f1

+ 0 - 6
gui/wxpython/core/globalvar.py

@@ -201,12 +201,6 @@ UpdateGRASSAddOnCommands()
 """@Toolbar icon size"""
 toolbarSize = (24, 24)
 
-"""@Is g.list available?"""
-if 'g.list' in grassCmd:
-    have_list = True
-else:
-    have_list = False
-
 """@Check version of wxPython, use agwStyle for 2.8.11+"""
 hasAgw = CheckWxVersion()
 

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

@@ -469,12 +469,8 @@ class TreeCtrlComboPopup(ListCtrlComboPopup):
             else:
                 filesdict = None
         else:
-            if globalvar.have_mlist:
-                filesdict = grass.mlist_grouped(elementdict[element],
-                                                check_search_path = False)
-            else:
-                filesdict = grass.list_grouped(elementdict[element],
-                                               check_search_path = False)
+            filesdict = grass.list_grouped(elementdict[element],
+                                           check_search_path=False)
 
         # add extra items first
         if self.extraItems: