[GRASS-SVN] r50319 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 20 09:39:39 EST 2012
Author: martinl
Date: 2012-01-20 06:39:39 -0800 (Fri, 20 Jan 2012)
New Revision: 50319
Modified:
grass/trunk/gui/wxpython/vdigit/mapwindow.py
Log:
wxGUI/vdigit: show message when no action defined
Modified: grass/trunk/gui/wxpython/vdigit/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/mapwindow.py 2012-01-20 12:42:20 UTC (rev 50318)
+++ grass/trunk/gui/wxpython/vdigit/mapwindow.py 2012-01-20 14:39:39 UTC (rev 50319)
@@ -507,7 +507,12 @@
return
action = self.toolbar.GetAction()
+
if not action:
+ GMessage(parent = self,
+ message = _("Nothing to do. "
+ "Choose appropriate tool from digitizer toolbar."))
+ event.Skip()
return
if action not in ("moveVertex",
More information about the grass-commit
mailing list