[GRASS-SVN] r35995 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 20 15:00:20 EST 2009


Author: martinl
Date: 2009-02-20 15:00:19 -0500 (Fri, 20 Feb 2009)
New Revision: 35995

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't run empty commands


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-02-20 19:48:20 UTC (rev 35994)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-02-20 20:00:19 UTC (rev 35995)
@@ -780,8 +780,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