Revert the debug code for issue #36384.

git-svn-id: trunk@62365 -
This commit is contained in:
juha 2019-12-09 19:38:40 +00:00
parent 2a2559a1fd
commit 6fe2341ba0

View File

@ -1586,8 +1586,6 @@ begin
Config.SetDeleteValue(Path+'Desktop/FormIdCount',Count,0); Config.SetDeleteValue(Path+'Desktop/FormIdCount',Count,0);
//debugln(['TSimpleWindowLayoutList.SaveToConfig ',Count]); //debugln(['TSimpleWindowLayoutList.SaveToConfig ',Count]);
for i:=0 to Count-1 do begin for i:=0 to Count-1 do begin
if Items[i].FormID = 'SearchResults' then
DebugLn(['*** TSimpleWindowLayoutList.SaveToConfig: Saving ', Items[i].FormID, '.']);
Config.SetDeleteValue(Path+'Desktop/FormIdList/a'+IntToStr(i+1),Items[i].FormID,''); Config.SetDeleteValue(Path+'Desktop/FormIdList/a'+IntToStr(i+1),Items[i].FormID,'');
Items[i].SaveToConfig(Config,Path); Items[i].SaveToConfig(Config,Path);
end; end;
@ -2221,21 +2219,12 @@ begin
// auto create a layout storage for every shown form // auto create a layout storage for every shown form
Layout:=SimpleLayoutStorage.ItemByFormID(AForm.Name); Layout:=SimpleLayoutStorage.ItemByFormID(AForm.Name);
if AForm.Name = 'SearchResults' then
DebugLn(['TIDEWindowCreatorList.ShowForm: SearchResults layout=', Layout,
', BringToFront=', BringToFront, ', AMoveToVisbleMode=', AMoveToVisbleMode]);
if Layout=nil then begin if Layout=nil then begin
if not IsFormDesign(AForm) then begin if not IsFormDesign(AForm) then
if AForm.Name = 'SearchResults' then
DebugLn([' TIDEWindowCreatorList.ShowForm: Calling CreateWindowLayout for SearchResults.']);
SimpleLayoutStorage.CreateWindowLayout(AForm); SimpleLayoutStorage.CreateWindowLayout(AForm);
end;
end end
else begin else
if AForm.Name = 'SearchResults' then
DebugLn([' TIDEWindowCreatorList.ShowForm: Setting SearchResults form for layout.']);
Layout.Form:=AForm; Layout.Form:=AForm;
end;
if (IDEDockMaster<>nil) and (not IsFormDesign(AForm)) if (IDEDockMaster<>nil) and (not IsFormDesign(AForm))
and (FindWithName(AForm.Name)<>nil) then and (FindWithName(AForm.Name)<>nil) then