mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 18:39:52 +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 (OldIndex>=0) and (OldIndex<Notebook.PageCount) then begin
|
||||||
if not GetHook(Hook) then exit;
|
if not GetHook(Hook) then exit;
|
||||||
Hook.DeleteComponent(TComponent(NoteBook.PageList[OldIndex]));
|
Hook.DeleteComponent(TComponent(NoteBook.PageList[OldIndex]));
|
||||||
GetDesigner.Modified;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -566,7 +565,7 @@ begin
|
|||||||
case Index of
|
case Index of
|
||||||
nbvAddPage: DoAddPage;
|
nbvAddPage: DoAddPage;
|
||||||
nbvInsertPage: DoInsertPage;
|
nbvInsertPage: DoInsertPage;
|
||||||
nbvDeletePage: DoDeletePage;
|
nbvDeletePage: DoDeletePage; // beware: this can free the editor itself
|
||||||
nbvMovePageLeft: DoMoveActivePageLeft;
|
nbvMovePageLeft: DoMoveActivePageLeft;
|
||||||
nbvMovePageRight: DoMoveActivePageRight;
|
nbvMovePageRight: DoMoveActivePageRight;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user