[GRASS-SVN] r50320 -
grass/branches/develbranch_6/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 20 09:52:30 EST 2012
Author: martinl
Date: 2012-01-20 06:52:30 -0800 (Fri, 20 Jan 2012)
New Revision: 50320
Modified:
grass/branches/develbranch_6/gui/wxpython/vdigit/mapwindow.py
Log:
wxGUI/vdigit: show message when no action defined
(merge r50319 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/vdigit/mapwindow.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/vdigit/mapwindow.py 2012-01-20 14:39:39 UTC (rev 50319)
+++ grass/branches/develbranch_6/gui/wxpython/vdigit/mapwindow.py 2012-01-20 14:52:30 UTC (rev 50320)
@@ -496,7 +496,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