Don't know how it ever worked before, supporting project template kicad.pro
This commit is contained in:
parent
4a7ba86996
commit
8e6713ca02
|
@ -261,7 +261,7 @@ wxConfigBase* PROJECT::configCreate( const SEARCH_STACK& aSList, const wxString&
|
||||||
}
|
}
|
||||||
else // Version incorrect
|
else // Version incorrect
|
||||||
{
|
{
|
||||||
wxLogDebug( wxT( "Project file version is zero, not using this old project file, going with template.\n") );
|
wxLogDebug( wxT( "Project file version is zero, not using this old project file, going with template." ) );
|
||||||
delete cfg;
|
delete cfg;
|
||||||
cfg = 0;
|
cfg = 0;
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ wxConfigBase* PROJECT::configCreate( const SEARCH_STACK& aSList, const wxString&
|
||||||
|
|
||||||
// copy the template to cur_pro_fn, and open it at that destination.
|
// copy the template to cur_pro_fn, and open it at that destination.
|
||||||
wxCopyFile( kicad_pro_template, cur_pro_fn );
|
wxCopyFile( kicad_pro_template, cur_pro_fn );
|
||||||
cfg = new wxFileConfig( wxEmptyString, wxEmptyString, wxEmptyString, cur_pro_fn );
|
cfg = new wxFileConfig( wxEmptyString, wxEmptyString, cur_pro_fn, wxEmptyString );
|
||||||
|
|
||||||
cfg->DontCreateOnDemand();
|
cfg->DontCreateOnDemand();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue