Przeglądaj źródła

Fixed bugs in display decorations. Opening properties dialogs caused errors and dialogs would not close. Ported from develbranch_6.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32806 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 16 lat temu
rodzic
commit
794c4bf989
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      gui/wxpython/gui_modules/menuform.py

+ 5 - 4
gui/wxpython/gui_modules/menuform.py

@@ -826,10 +826,11 @@ class mainFrame(wx.Frame):
         """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()