mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 03:56:08 +02:00
MG: fixed deleting TPage, when page is selected
git-svn-id: trunk@3643 -
This commit is contained in:
parent
8027d20e8c
commit
a24bd9505a
@ -514,7 +514,6 @@ begin
|
||||
if (OldIndex>=0) and (OldIndex<Notebook.PageCount) then begin
|
||||
if not GetHook(Hook) then exit;
|
||||
Hook.DeleteComponent(TComponent(NoteBook.PageList[OldIndex]));
|
||||
GetDesigner.Modified;
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -566,7 +565,7 @@ begin
|
||||
case Index of
|
||||
nbvAddPage: DoAddPage;
|
||||
nbvInsertPage: DoInsertPage;
|
||||
nbvDeletePage: DoDeletePage;
|
||||
nbvDeletePage: DoDeletePage; // beware: this can free the editor itself
|
||||
nbvMovePageLeft: DoMoveActivePageLeft;
|
||||
nbvMovePageRight: DoMoveActivePageRight;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user