mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
lcl: don't directly destroy the page on deletion, use release component to postpone control death (issue #0014365)
git-svn-id: trunk@25126 -
This commit is contained in:
parent
37bdc6873b
commit
8e3c6c7bda
@ -114,7 +114,7 @@ begin
|
||||
// delete handle
|
||||
APage.Parent := nil;
|
||||
// free the page
|
||||
APage.Free;
|
||||
Application.ReleaseComponent(APage);
|
||||
end;
|
||||
{$IFDEF NOTEBOOK_DEBUG}
|
||||
DebugLn(['TNBPages.Delete END ',fNoteBook.Name,' Index=',Index,' fPageList.Count=',fPageList.Count,' fNoteBook.PageIndex=',fNoteBook.PageIndex]);
|
||||
|
Loading…
Reference in New Issue
Block a user