[GRASS-SVN] r35997 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 20 15:07:23 EST 2009
Author: martinl
Date: 2009-02-20 15:07:23 -0500 (Fri, 20 Feb 2009)
New Revision: 35997
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't run empty commands
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-02-20 20:05:37 UTC (rev 35996)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-02-20 20:07:23 UTC (rev 35997)
@@ -781,8 +781,8 @@
def OnRun(self, event):
"""Run the command"""
cmd = self.createCmd()
-
- if cmd == [] or cmd == None:
+
+ if cmd == None or len(cmd) < 2:
return
if cmd[0][0:2] != "d.":
More information about the grass-commit
mailing list