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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 30 09:17:54 EDT 2010


Author: martinl
Date: 2010-03-30 09:17:53 -0400 (Tue, 30 Mar 2010)
New Revision: 41623

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI/modeler: hide dialog on close


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-03-30 13:15:01 UTC (rev 41622)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-03-30 13:17:53 UTC (rev 41623)
@@ -985,6 +985,8 @@
             elif len(self.parent.GetPyData(self.layer)[0]['cmd']) < 1:
                 self.parent.Delete(self.layer)
                 self.Destroy()
+        elif self.parent and self.parent.GetName() == 'Modeler':
+            self.Hide()
         else:
             # cancel for non-display commands
             self.Destroy()



More information about the grass-commit mailing list