From e2a1e5d4a1042dd8fd2a089e724b19784a7110fb Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 3 Sep 2021 16:22:32 +0200 Subject: [PATCH] DIALOG_EXPORT_STEP: fix regression: missing default filename initilization --- pcbnew/dialogs/dialog_export_step.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_export_step.cpp b/pcbnew/dialogs/dialog_export_step.cpp index c45d02427f..3173f737b1 100644 --- a/pcbnew/dialogs/dialog_export_step.cpp +++ b/pcbnew/dialogs/dialog_export_step.cpp @@ -135,10 +135,14 @@ DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP( PCB_EDIT_FRAME* aParent, const wxString& widget->Destroy(); m_filePickerSTEP = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, - _( "Select a STEP export filename" ), _( "STEP files" ) + AddFileExtListToFilter( { "STEP", "STP" } ), wxDefaultPosition, + _( "Select a STEP export filename" ), + _( "STEP files" ) + AddFileExtListToFilter( { "STEP", "STP" } ), + wxDefaultPosition, wxSize( -1, -1 ), wxFLP_SAVE | wxFLP_USE_TEXTCTRL ); bSizerTop->Add( m_filePickerSTEP, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 ); + m_filePickerSTEP->SetPath( path ); + Layout(); bSizerSTEPFile->Fit( this );