[GRASS-SVN] r41924 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 19 05:20:07 EDT 2010
Author: martinl
Date: 2010-04-19 05:19:53 -0400 (Mon, 19 Apr 2010)
New Revision: 41924
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI/modeler: fix OnRun/Done
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2010-04-19 08:24:48 UTC (rev 41923)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2010-04-19 09:19:53 UTC (rev 41924)
@@ -665,13 +665,20 @@
def OnCmdRun(self, event):
"""!Run command"""
if self.parent.GetName() == 'Modeler':
- self.parent.GetModel().GetActions()[event.pid].Update(running = True)
+ try:
+ self.parent.GetModel().GetActions()[event.pid].Update(running = True)
+ except IndexError:
+ pass
+
self.WriteCmdLog('(%s)\n%s' % (str(time.ctime()), ' '.join(event.cmd)))
def OnCmdDone(self, event):
"""!Command done (or aborted)"""
if self.parent.GetName() == 'Modeler':
- self.parent.GetModel().GetActions()[event.pid].Update(running = False)
+ try:
+ self.parent.GetModel().GetActions()[event.pid].Update(running = False)
+ except IndexError:
+ pass
if event.aborted:
# Thread aborted (using our convention of None return)
More information about the grass-commit
mailing list