[GRASS-SVN] r35996 - grass/branches/develbranch_6/gui/wxpython/gui_modules

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


Author: martinl
Date: 2009-02-20 15:05:37 -0500 (Fri, 20 Feb 2009)
New Revision: 35996

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't run empty commands
       (merge from relbr64, r35995)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-02-20 20:00:19 UTC (rev 35995)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-02-20 20:05:37 UTC (rev 35996)
@@ -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