IDE: Rest of changes from August Klein for 'Single Button in Taskbar', issue #19320

git-svn-id: trunk@30908 -
This commit is contained in:
juha 2011-05-25 22:30:41 +00:00
parent f83fc69376
commit 63b8f5423a

View File

@ -16934,10 +16934,12 @@ begin
while LastActivatedWindows.Count>0 do
begin
AForm:=TCustomForm(LastActivatedWindows[0]);
if Assigned(AForm) and AForm.IsVisible then
if Assigned(AForm) and (not (CsDestroying in AForm.ComponentState)) and
AForm.IsVisible then
AForm.BringToFront;
LastActivatedWindows.Delete(0);
end;
MainIDEBar.BringToFront;
end;
end;