[GRASS-SVN] r36986 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 4 11:50:45 EDT 2009


Author: martinl
Date: 2009-05-04 11:50:45 -0400 (Mon, 04 May 2009)
New Revision: 36986

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
fix r36984


Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2009-05-04 15:48:10 UTC (rev 36985)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2009-05-04 15:50:45 UTC (rev 36986)
@@ -10,7 +10,7 @@
  - Layer
  - 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
 License (>=v2). Read the file COPYING that comes with GRASS
 for details.
@@ -43,6 +43,7 @@
 from debug import Debug as Debug
 from icon import Icons as Icons
 from preferences import globalSettings as UserSettings
+from vdigit import hasVDigit
 try:
     import subprocess
 except:
@@ -289,7 +290,8 @@
             self.Bind (wx.EVT_MENU, self.lmgr.OnShowAttributeTable, id=self.popupID4)
 
             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.Enable(self.popupID6, False)
             self.Bind (wx.EVT_MENU, self.OnStartEditing, id=self.popupID5)



More information about the grass-commit mailing list