IDE: do not auto save layouts of csdesigntime forms, bug #18821

git-svn-id: trunk@29662 -
This commit is contained in:
mattias 2011-02-24 10:29:41 +00:00
parent 7d0f393fff
commit 93bf5b1fca

View File

@ -1450,8 +1450,10 @@ begin
// auto create a storage for every shown form
Layout:=SimpleLayoutStorage.ItemByFormID(AForm.Name);
if Layout=nil then
SimpleLayoutStorage.CreateWindowLayout(AForm)
if Layout=nil then begin
if not (csDesigning in AForm.ComponentState) then
SimpleLayoutStorage.CreateWindowLayout(AForm);
end
else
Layout.Form:=AForm;