mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 10:59:30 +02:00
IDE: Rest of changes from August Klein for 'Single Button in Taskbar', issue #19320
git-svn-id: trunk@30908 -
This commit is contained in:
parent
f83fc69376
commit
63b8f5423a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user