anchordocking: fix endless loop

git-svn-id: trunk@28441 -
This commit is contained in:
paul 2010-11-24 03:54:04 +00:00
parent 7779bd4654
commit 7c9336f367

View File

@ -438,8 +438,10 @@ begin
Parent:=GetParentForm(AForm);
Parent.ShowOnTop;
if (OldActiveControl<>nil) and OldActiveControl.CanFocus then
begin
Parent.ActiveControl:=OldActiveControl;
AForm.SetFocus;
Parent.SetFocus;
end;
//debugln(['TIDEAnchorDockMaster.ShowForm AForm.ActiveControl=',dbgsname(AForm.ActiveControl),' ',DbgSName(Parent.ActiveControl),' ',DbgSName(FindControl(GetFocus))]);
end;
end;