From e5df16ba2b0455643d017ca1a3ba2f6c06872eef Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 14 Jun 2023 21:25:06 +0100 Subject: [PATCH] Pass proper parent to symbol viewer frame when changing symbols Fixes sentry KICAD-1Z9 Fixes sentry KICAD-22J (Cherry-picked from 1f5719ef3ad0db50f9f4efd27c5bfc51213b7130) --- eeschema/dialogs/dialog_change_symbols.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_change_symbols.cpp b/eeschema/dialogs/dialog_change_symbols.cpp index 43eadd6eff..911c335556 100644 --- a/eeschema/dialogs/dialog_change_symbols.cpp +++ b/eeschema/dialogs/dialog_change_symbols.cpp @@ -242,7 +242,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 ) ) { @@ -258,7 +258,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 ) ) {