mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-21 06:59:21 +02:00
cocoa: fix in TListBox.setItemIndex to replace the selection, rather than extend it. #34290
git-svn-id: trunk@59036 -
This commit is contained in:
parent
d17ec595bb
commit
e7701af802
@ -1963,7 +1963,7 @@ begin
|
||||
list := GetListBox(ACustomListBox);
|
||||
if not Assigned(list) then Exit();
|
||||
|
||||
list.selectRowIndexes_byExtendingSelection(NSIndexSet.indexSetWithIndex(AIndex), True)
|
||||
list.selectRowIndexes_byExtendingSelection(NSIndexSet.indexSetWithIndex(AIndex), false);
|
||||
end;
|
||||
|
||||
class procedure TCocoaWSCustomListBox.SetSelectionMode(const ACustomListBox: TCustomListBox; const AExtendedSelect, AMultiSelect: boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user