[GRASS-SVN] r34837 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 12 10:07:58 EST 2008


Author: martinl
Date: 2008-12-12 10:07:57 -0500 (Fri, 12 Dec 2008)
New Revision: 34837

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix trac #305 (Add created map into layer tree: errors for import modules)
       (merge from devbr6, r34836)


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-12-12 15:06:24 UTC (rev 34836)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2008-12-12 15:07:57 UTC (rev 34837)
@@ -92,6 +92,7 @@
             time.sleep(.1)
             
             event = wxCmdDone(aborted=aborted,
+                              returncode=self.requestCmd.module.returncode,
                               time=requestTime,
                               pid=requestId)
             
@@ -513,7 +514,8 @@
 
             dialog.btn_run.Enable(True)
 
-            if not event.aborted and hasattr(dialog, "addbox") and \
+            if event.returncode == 0 and \
+                    not event.aborted and hasattr(dialog, "addbox") and \
                     dialog.addbox.IsChecked():
                 # add new map into layer tree
                 if dialog.outputType in ('raster', 'vector'):



More information about the grass-commit mailing list