Set reporter in DIALOG_SIM_MODEL::TransferDataToWindow.

It could've been set to point to local variable "reporter" in loadLibrary.

Fixes KICAD-15C

(cherry picked from commit 26f398a4b1)
This commit is contained in:
Alex Shvartzkop 2023-08-25 20:59:53 +03:00
parent 0f93752f14
commit 5b0d752e0c
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ bool DIALOG_SIM_MODEL<T_symbol, T_field>::TransferDataToWindow()
{
// The model is sourced from a library, optionally with instance overrides.
m_useLibraryModelRadioButton->SetValue( true );
m_libraryModelsMgr.SetReporter( &reporter );
if( !loadLibrary( libraryFilename ) )
{