Pass proper parent to symbol viewer frame when changing symbols

Fixes sentry KICAD-1Z9
Fixes sentry KICAD-22J
This commit is contained in:
Ian McInerney 2023-06-14 21:25:06 +01:00
parent 8ad7736f5e
commit 1f5719ef3a
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ void DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser( wxCommandEvent& aEvent )
{
wxString newName = getLibIdValue( m_specifiedId );
KIWAY_PLAYER* frame = Kiway().Player( FRAME_SCH_VIEWER_MODAL, true );
KIWAY_PLAYER* frame = Kiway().Player( FRAME_SCH_VIEWER_MODAL, true, this );
if( frame->ShowModal( &newName, this ) )
{
@ -259,7 +259,7 @@ void DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser( wxCommandEvent& aEvent )
{
wxString newName = getLibIdValue( m_newId );
KIWAY_PLAYER* frame = Kiway().Player( FRAME_SCH_VIEWER_MODAL, true );
KIWAY_PLAYER* frame = Kiway().Player( FRAME_SCH_VIEWER_MODAL, true, this );
if( frame->ShowModal( &newName, this ) )
{