Fix crash when opening schematic setup dialog
m_openPreferencesButton was not correctly initialised to nullptr
This commit is contained in:
parent
30928796bd
commit
1a5fb68ace
|
@ -52,6 +52,7 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aSho
|
|||
m_resetButton( nullptr ),
|
||||
m_openPrefsDirButton( nullptr ),
|
||||
m_cancelButton( nullptr ),
|
||||
m_openPreferencesButton( nullptr ),
|
||||
m_title( aTitle )
|
||||
{
|
||||
wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
@ -95,7 +96,6 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aSho
|
|||
m_buttonsSizer->Add( m_openPrefsDirButton, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT, 5 );
|
||||
}
|
||||
|
||||
|
||||
if( !aAuxiliaryAction.IsEmpty() )
|
||||
{
|
||||
m_auxiliaryButton = new wxButton( this, wxID_ANY, aAuxiliaryAction );
|
||||
|
|
Loading…
Reference in New Issue