automatically add extension to sim workbook files
CHANGED: When a workbook file is saved from the simulation dialog in eeschema, the extension is automatically added if it is not specified. This behaviour is consistent with the workbook loading dialog, which filters the filelist for only ".wbk" files with no "all files" option.
This commit is contained in:
parent
9689200984
commit
0dcf95ee1a
|
@ -706,7 +706,16 @@ bool SIM_PLOT_FRAME::loadWorkbook( const wxString& aPath )
|
|||
|
||||
bool SIM_PLOT_FRAME::saveWorkbook( const wxString& aPath )
|
||||
{
|
||||
wxTextFile file( aPath );
|
||||
|
||||
wxString savePath = aPath;
|
||||
|
||||
if( !savePath.Lower().EndsWith(".wbk"))
|
||||
{
|
||||
savePath += ".wbk";
|
||||
};
|
||||
|
||||
|
||||
wxTextFile file( savePath );
|
||||
|
||||
if( file.Exists() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue