[GRASS-SVN] r35064 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 27 11:56:47 EST 2008
Author: martinl
Date: 2008-12-27 11:56:47 -0500 (Sat, 27 Dec 2008)
New Revision: 35064
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: querying vector map crashes wxGUI (trac #415)
attempt to fix 'display mode'
(merge from devbr6, r35063)
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-12-27 16:52:58 UTC (rev 35063)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-12-27 16:56:47 UTC (rev 35064)
@@ -85,6 +85,11 @@
self.resultQ.put((requestId, self.requestCmd.run()))
try:
+ returncode = self.requestCmd.module.returncode
+ except AttributeError:
+ returncode = 0 # being optimistic
+
+ try:
aborted = self.requestCmd.aborted
except AttributeError:
aborted = False
@@ -92,7 +97,7 @@
time.sleep(.1)
event = wxCmdDone(aborted=aborted,
- returncode=self.requestCmd.module.returncode,
+ returncode=returncode,
time=requestTime,
pid=requestId)
More information about the grass-commit
mailing list