X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/657c88188f02fcf4ce8f2e0b60c5e1843a73f45c..6feaaaedd69b30001afcfe54620f08f635094819:/samples/widgets/notebook.cpp diff --git a/samples/widgets/notebook.cpp b/samples/widgets/notebook.cpp index 6d6ea11165..8534da6d87 100644 --- a/samples/widgets/notebook.cpp +++ b/samples/widgets/notebook.cpp @@ -397,7 +397,7 @@ void NotebookWidgetsPage::CreateNotebook() notebook->GetPageImage(n)); } - m_sizerNotebook->Remove(notebook); + m_sizerNotebook->Detach( notebook ); delete notebook; // restore selection