mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:49:18 +02:00
Cocoa/ListView: fix the issue that multiple selections could not be retained when switching viewStyle
This commit is contained in:
parent
7f011e1f63
commit
e1be13f4b7
@ -1351,6 +1351,9 @@ begin
|
|||||||
if NOT Assigned(lclcb) then
|
if NOT Assigned(lclcb) then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
|
if TCocoaListView(lclcb.Owner).initializing then
|
||||||
|
Exit;
|
||||||
|
|
||||||
lclcb.selectionIndexSet.removeAllIndexes;
|
lclcb.selectionIndexSet.removeAllIndexes;
|
||||||
_collectionView.reloadData();
|
_collectionView.reloadData();
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user