Kicad, unzip archive: allows directory creation in dir dialog.
Fixes #4461 https://gitlab.com/kicad/code/kicad/issues/4461
This commit is contained in:
parent
d3f017d825
commit
fca3fb0e11
|
@ -116,8 +116,7 @@ void KICAD_MANAGER_FRAME::OnUnarchiveFiles( wxCommandEvent& event )
|
||||||
wxString msg = wxString::Format( _( "\nOpen \"%s\"\n" ), zipfiledlg.GetPath() );
|
wxString msg = wxString::Format( _( "\nOpen \"%s\"\n" ), zipfiledlg.GetPath() );
|
||||||
PrintMsg( msg );
|
PrintMsg( msg );
|
||||||
|
|
||||||
wxDirDialog dirDlg( this, _( "Target Directory" ), fn.GetPath(),
|
wxDirDialog dirDlg( this, _( "Target Directory" ), fn.GetPath(), wxDD_DEFAULT_STYLE );
|
||||||
wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST );
|
|
||||||
|
|
||||||
if( dirDlg.ShowModal() == wxID_CANCEL )
|
if( dirDlg.ShowModal() == wxID_CANCEL )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue