[GRASS-SVN] r44000 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 24 02:51:46 EDT 2010
Author: martinl
Date: 2010-10-23 23:51:46 -0700 (Sat, 23 Oct 2010)
New Revision: 44000
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix menuform dialog (map tree)
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2010-10-24 06:47:16 UTC (rev 43999)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2010-10-24 06:51:46 UTC (rev 44000)
@@ -737,13 +737,19 @@
dialog.btn_run.Enable(True)
if event.returncode == 0 and not event.aborted:
- winName = self.parent.parent.parent.GetName()
+ try:
+ winName = self.parent.parent.parent.GetName()
+ except AttributeError:
+ winName = ''
+
if winName == 'LayerManager':
mapTree = self.parent.parent.parent.GetLayerTree()
elif winName == 'LayerTree':
mapTree = self.parent.parent.parent
- else: # GMConsole
+ elif winName: # GMConsole
mapTree = self.parent.parent.parent.parent.GetLayerTree()
+ else:
+ mapTree = None
cmd = dialog.notebookpanel.createCmd(ignoreErrors = True)
if hasattr(dialog, "addbox") and dialog.addbox.IsChecked():
More information about the grass-commit
mailing list