revert wxwidgets control pool

This commit is contained in:
SoftFever 2024-05-05 13:38:37 +08:00
parent c2f5660afd
commit d72c9f923a
7 changed files with 28 additions and 158 deletions

View file

@ -4996,12 +4996,12 @@ void Tab::clear_pages()
{
// invalidated highlighter, if any exists
m_highlighter.invalidate();
// clear pages from the controlls
for (auto p : m_pages)
p->clear();
//BBS: clear page in Parent
//m_page_sizer->Clear(true);
m_parent->clear_page();
// clear pages from the controlls
for (auto p : m_pages)
p->clear();
// nulling pointers
m_parent_preset_description_line = nullptr;