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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 27 11:57:31 EST 2008


Author: martinl
Date: 2008-12-27 11:57:31 -0500 (Sat, 27 Dec 2008)
New Revision: 35065

Modified:
   grass/branches/releasebranch_6_4/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/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py	2008-12-27 16:56:47 UTC (rev 35064)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py	2008-12-27 16:57:31 UTC (rev 35065)
@@ -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