Selaa lähdekoodia

wxGUI: fix disabling menu items, related to https://trac.osgeo.org/grass/changeset/31363

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31367 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 vuotta sitten
vanhempi
commit
c7ba51f9d9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      gui/wxpython/wxgui.py

+ 1 - 1
gui/wxpython/wxgui.py

@@ -271,7 +271,7 @@ class GMFrame(wx.Frame):
         self.menucmd[menuItem.GetId()] = gcmd
 
         if len(gcmd) > 0 and \
-                gcmd not in globalvar.grassCmd['all']:
+                gcmd.split()[0] not in globalvar.grassCmd['all']:
             menuItem.Enable (False)
 
         rhandler = eval(handler)