DIALOG_EXPORT_STEP: fix regression: missing default filename initilization
This commit is contained in:
parent
5e8b23af64
commit
e2a1e5d4a1
|
@ -135,10 +135,14 @@ DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP( PCB_EDIT_FRAME* aParent, const wxString&
|
||||||
widget->Destroy();
|
widget->Destroy();
|
||||||
|
|
||||||
m_filePickerSTEP = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString,
|
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 );
|
wxSize( -1, -1 ), wxFLP_SAVE | wxFLP_USE_TEXTCTRL );
|
||||||
bSizerTop->Add( m_filePickerSTEP, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
bSizerTop->Add( m_filePickerSTEP, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_filePickerSTEP->SetPath( path );
|
||||||
|
|
||||||
Layout();
|
Layout();
|
||||||
bSizerSTEPFile->Fit( this );
|
bSizerSTEPFile->Fit( this );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue