mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 16:09:26 +02:00
PackageTabs: Prevent a crash after 'Close all' of a sole tab. Issue #41139.
This commit is contained in:
parent
f9c4b5d7d1
commit
aa7962c50c
@ -708,7 +708,7 @@ begin
|
||||
try
|
||||
I := 0;
|
||||
xDelete := False;
|
||||
while I < FPanel.ControlCount do
|
||||
for I := 0 to FPanel.ControlCount-1 do
|
||||
begin
|
||||
if xDelete then
|
||||
begin
|
||||
@ -721,8 +721,6 @@ begin
|
||||
end else
|
||||
if FPanel.Controls[I] = AGroupLabel then
|
||||
xDelete := True;
|
||||
|
||||
Inc(I);
|
||||
end;
|
||||
finally
|
||||
FAppIdleLocked := False;
|
||||
|
Loading…
Reference in New Issue
Block a user