mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 21:59:39 +02:00
save TListBox.ItemIndex on destroy handle
git-svn-id: trunk@6491 -
This commit is contained in:
parent
36c907fc59
commit
563264d9fa
@ -100,6 +100,9 @@ var
|
|||||||
i, Cnt: integer;
|
i, Cnt: integer;
|
||||||
begin
|
begin
|
||||||
LockSelectionChange;
|
LockSelectionChange;
|
||||||
|
// save ItemIndex on destroy handle
|
||||||
|
if ([csDestroying,csLoading]*ComponentState=[]) then
|
||||||
|
GetItemIndex;
|
||||||
//DebugLn('[TCustomListBox.DestroyHandle] A ',FItems.ClassName);
|
//DebugLn('[TCustomListBox.DestroyHandle] A ',FItems.ClassName);
|
||||||
// create internal item list
|
// create internal item list
|
||||||
NewStrings:= TExtendedStringList.Create(GetCachedDataSize);
|
NewStrings:= TExtendedStringList.Create(GetCachedDataSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user