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 // auto create a storage for every shown form
Layout:=SimpleLayoutStorage.ItemByFormID(AForm.Name); Layout:=SimpleLayoutStorage.ItemByFormID(AForm.Name);
if Layout=nil then if Layout=nil then begin
SimpleLayoutStorage.CreateWindowLayout(AForm) if not (csDesigning in AForm.ComponentState) then
SimpleLayoutStorage.CreateWindowLayout(AForm);
end
else else
Layout.Form:=AForm; Layout.Form:=AForm;