$OpenBSD: patch-GormCore_GormDocument_m,v 1.1 2012/07/13 15:40:43 sebastia Exp $

Fix editing .gorm's with many views, i.e. AddressManager 
or Fisicalab

--- GormCore/GormDocument.m.orig	Tue Jun 19 06:47:30 2012
+++ GormCore/GormDocument.m	Thu Jul 12 12:34:16 2012
@@ -1915,13 +1915,6 @@ static void _real_close(GormDocument *self,
 	{
 	  [[self openEditorForObject: obj] activate];
 	}
-      else if([obj isKindOfClass: [NSView class]])
-	{
-	  if([obj superview] == nil)
-	    {
-	      [[self openEditorForObject: obj] activate];
-	    }
-	}
     }
 }
 
