Nullptr safety. (Sentry KICAD-71)
This commit is contained in:
parent
f45d44a639
commit
47d88c5647
|
@ -227,8 +227,8 @@ void DIALOG_FIELD_PROPERTIES::OnTextValueSelectButtonClick( wxCommandEvent& aEve
|
|||
else
|
||||
fpid = m_TextCtrl->GetValue();
|
||||
|
||||
KIWAY_PLAYER* frame = Kiway().Player( FRAME_FOOTPRINT_VIEWER_MODAL, true );
|
||||
|
||||
if( KIWAY_PLAYER* frame = Kiway().Player( FRAME_FOOTPRINT_VIEWER_MODAL, true ) )
|
||||
{
|
||||
if( frame->ShowModal( &fpid, this ) )
|
||||
{
|
||||
if( m_StyledTextCtrl->IsShown() )
|
||||
|
@ -238,6 +238,7 @@ void DIALOG_FIELD_PROPERTIES::OnTextValueSelectButtonClick( wxCommandEvent& aEve
|
|||
}
|
||||
|
||||
frame->Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue