From 1a5fb68acee2715436d0333a43265a3b334cff89 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sun, 16 Jul 2023 21:41:50 +0200 Subject: [PATCH] Fix crash when opening schematic setup dialog m_openPreferencesButton was not correctly initialised to nullptr --- common/widgets/paged_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index c0e6b4a874..c15fd05ba7 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -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 );