mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-22 18:48:25 +02:00
LCL/TCustomComboBox: Sorted supported (Cocoa first)
This commit is contained in:
parent
2ce8c12ed9
commit
062bacda7a
@ -33,6 +33,8 @@ begin
|
|||||||
if (FItems<>NewStrings) and (FItems<>nil) then
|
if (FItems<>NewStrings) and (FItems<>nil) then
|
||||||
begin
|
begin
|
||||||
NewStrings.Assign(FItems);
|
NewStrings.Assign(FItems);
|
||||||
|
if NewStrings is TStringList then
|
||||||
|
TStringList(NewStrings).Sorted:= self.Sorted;
|
||||||
FItems.Free;
|
FItems.Free;
|
||||||
end;
|
end;
|
||||||
// and use the interface based list
|
// and use the interface based list
|
||||||
|
Loading…
Reference in New Issue
Block a user