mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 03:16:10 +02:00
IDE: Fix an index out of bounds error in Editor Window Manager, issue #21455
git-svn-id: trunk@35877 -
This commit is contained in:
parent
d9155823c1
commit
f7140e5cea
@ -135,6 +135,7 @@ begin
|
||||
SaveCheckedButton.Enabled:=HasChecked;
|
||||
CloseCheckedButton.Enabled:=HasChecked;
|
||||
CloseMenuItem.Enabled:=HasChecked;
|
||||
CheckAllCheckBox.Enabled:=clb.Count>0;
|
||||
// If all items were unchecked, change CheckAllCheckBox state.
|
||||
if CheckAllCheckBox.Checked and not HasChecked then begin
|
||||
CheckAllCheckBox.Checked:=HasChecked;
|
||||
@ -157,7 +158,7 @@ begin
|
||||
FilterEdit.ItemWasClicked(CheckListBox1.Items[i], cb.Checked); // Notify the filter
|
||||
end;
|
||||
end;
|
||||
CheckListBox1ItemClick(CheckListBox1, 0);
|
||||
CheckListBox1ItemClick(CheckListBox1, CheckListBox1.Count-1);
|
||||
end;
|
||||
|
||||
procedure TEditorFileManagerForm.SortAlphabeticallyButtonClick(Sender: TObject);
|
||||
@ -358,7 +359,7 @@ procedure TEditorFileManagerForm.UpdateButtons;
|
||||
// Update the filter and buttons. Reuse event handlers for it.
|
||||
begin
|
||||
FilterEdit.InvalidateFilter;
|
||||
CheckListBox1ItemClick(CheckListBox1, 0);
|
||||
CheckListBox1ItemClick(CheckListBox1, CheckListBox1.Count-1);
|
||||
end;
|
||||
|
||||
procedure TEditorFileManagerForm.UpdateMoveButtons(ListIndex: integer);
|
||||
|
Loading…
Reference in New Issue
Block a user