MG: fixed deleting TPage, when page is selected

git-svn-id: trunk@3643 -
This commit is contained in:
mattias 2002-11-16 11:59:24 +00:00
parent 8027d20e8c
commit a24bd9505a

View File

@ -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;