瀏覽代碼

fix https://trac.osgeo.org/grass/changeset/36984

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36986 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父節點
當前提交
5c8bc3c9db
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      gui/wxpython/gui_modules/wxgui_utils.py

+ 4 - 2
gui/wxpython/gui_modules/wxgui_utils.py

@@ -10,7 +10,7 @@ Classes:
  - Layer
  - Layer
  - LayerTree
  - LayerTree
 
 
-(C) 2007-2008 by the GRASS Development Team
+(C) 2007-2009 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
 License (>=v2). Read the file COPYING that comes with GRASS
 for details.
 for details.
@@ -43,6 +43,7 @@ import profile
 from debug import Debug as Debug
 from debug import Debug as Debug
 from icon import Icons as Icons
 from icon import Icons as Icons
 from preferences import globalSettings as UserSettings
 from preferences import globalSettings as UserSettings
+from vdigit import hasVDigit
 try:
 try:
     import subprocess
     import subprocess
 except:
 except:
@@ -289,7 +290,8 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             self.Bind (wx.EVT_MENU, self.lmgr.OnShowAttributeTable, id=self.popupID4)
             self.Bind (wx.EVT_MENU, self.lmgr.OnShowAttributeTable, id=self.popupID4)
 
 
             self.popupMenu.Append(self.popupID5, text=_("Start editing"))
             self.popupMenu.Append(self.popupID5, text=_("Start editing"))
-            self.popupMenu.Enable(self.popupID5, False)
+            if not hasVDigit:
+                self.popupMenu.Enable(self.popupID5, False)
             self.popupMenu.Append(self.popupID6, text=_("Stop editing"))
             self.popupMenu.Append(self.popupID6, text=_("Stop editing"))
             self.popupMenu.Enable(self.popupID6, False)
             self.popupMenu.Enable(self.popupID6, False)
             self.Bind (wx.EVT_MENU, self.OnStartEditing, id=self.popupID5)
             self.Bind (wx.EVT_MENU, self.OnStartEditing, id=self.popupID5)