[GRASS-SVN] r41925 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 19 05:24:25 EDT 2010
Author: martinl
Date: 2010-04-19 05:24:02 -0400 (Mon, 19 Apr 2010)
New Revision: 41925
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI/modeler: fix onRun/Done
(merge r41924 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2010-04-19 09:19:53 UTC (rev 41924)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2010-04-19 09:24:02 UTC (rev 41925)
@@ -664,13 +664,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