X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37144cf0f155bb7cea1972e934a4d083bca1b8ca..06fe86b734e64b5cb0da19a013352ef7530a14bc:/samples/notebook/notebook.cpp?ds=inline diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 5e0d05be50..7c9ac1d0be 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -390,7 +390,7 @@ void MyFrame::ReInitNotebook() m_notebook->AddPage(page, str, false, m_notebook->GetIconIndex() ); } - m_sizerTop->Remove(notebook); + m_sizerTop->Detach(notebook); delete notebook;