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:
vincents 2011-10-05 13:04:25 +00:00
parent 772cc519c5
commit 3ab33c3251

View File

@ -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);