mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 04:58:11 +02:00
ideintf: fixed enabled state of down button after deleting the one but last collection item, the listbox has already updated, so its count is ok, but the underlying collection is stil deleting, so its count is 1 too high
git-svn-id: trunk@32704 -
This commit is contained in:
parent
772cc519c5
commit
3ab33c3251
@ -224,7 +224,7 @@ begin
|
||||
actAdd.Enabled := Collection <> nil;
|
||||
actDel.Enabled := I > -1;
|
||||
actMoveUp.Enabled := I > 0;
|
||||
actMoveDown.Enabled := (I >= 0) and (I < Collection.Count - 1);
|
||||
actMoveDown.Enabled := (I >= 0) and (I < CollectionListBox.Items.Count - 1);
|
||||
end;
|
||||
|
||||
procedure TCollectionPropertyEditorForm.PersistentAdded(APersistent: TPersistent; Select: boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user