mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Try again to fix template assert
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21438
This commit is contained in:
parent
d2293ab56a
commit
762aa66d62
@ -417,6 +417,9 @@ void DIALOG_TEMPLATE_SELECTOR::replaceCurrentPage()
|
||||
wxString title = m_notebook->GetPageText( page );
|
||||
wxString currPath = m_tcTemplatePath->GetValue();
|
||||
|
||||
// Block all events to the notebook and its children
|
||||
wxEventBlocker blocker( m_notebook );
|
||||
|
||||
// Detach webview from current panel before deleting it
|
||||
if( (unsigned)page < m_panels.size() )
|
||||
{
|
||||
@ -439,7 +442,6 @@ void DIALOG_TEMPLATE_SELECTOR::replaceCurrentPage()
|
||||
buildPageContent( m_tcTemplatePath->GetValue(), page );
|
||||
|
||||
m_selectedWidget = nullptr;
|
||||
|
||||
// Reset to welcome page after rebuilding
|
||||
m_webviewPanel->SetPage( GetWelcomeHtml() );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user