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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 16 03:33:58 EDT 2008


Author: cmbarton
Date: 2008-08-16 03:33:57 -0400 (Sat, 16 Aug 2008)
New Revision: 32806

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
Fixed bugs in display decorations. Opening properties dialogs caused errors and dialogs would not close. Ported from develbranch_6.

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-08-16 07:31:54 UTC (rev 32805)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-08-16 07:33:57 UTC (rev 32806)
@@ -826,10 +826,11 @@
         """Cancel button pressed"""
         self.MakeModal(False)
         if self.get_dcmd:
-            if len(self.parent.GetPyData(self.layer)[0]['cmd']) < 1:
-                self.parent.Delete(self.layer)
-                self.Destroy()
-            else:
+            try:
+                if len(self.parent.GetPyData(self.layer)[0]['cmd']) < 1:
+                    self.parent.Delete(self.layer)
+                    self.Destroy()
+            except:
                 self.Hide()
         else:
             self.Destroy()



More information about the grass-commit mailing list