[GRASS-SVN] r34836 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 12 10:06:24 EST 2008
Author: martinl
Date: 2008-12-12 10:06:24 -0500 (Fri, 12 Dec 2008)
New Revision: 34836
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix trac #305 (Add created map into layer tree: errors for import modules)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-12-12 13:34:38 UTC (rev 34835)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2008-12-12 15:06:24 UTC (rev 34836)
@@ -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