IDE: when hiding an used designer component: free/hide the form

git-svn-id: trunk@22341 -
This commit is contained in:
mattias 2009-10-29 14:47:36 +00:00
parent c12d17af61
commit 58cb88ebb3

View File

@ -533,8 +533,7 @@ begin
Form.Designer := nil;
if FMediator<>nil then
FMediator.Designer:=nil;
if FreeComponent then
TheFormEditor.DeleteComponent(FLookupRoot,true);
TheFormEditor.DeleteComponent(FLookupRoot,FreeComponent);
FMediator:=nil;
end;
Free;