Fix relative path used where absolute path should be
This commit is contained in:
parent
260e32c9e7
commit
afc6d29fde
|
@ -1131,7 +1131,7 @@ void SIM_PLOT_FRAME::menuSaveWorkbook( wxCommandEvent& event )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !saveWorkbook( m_simulator->Settings()->GetWorkbookFilename() ) )
|
if ( !saveWorkbook( Prj().AbsolutePath( m_simulator->Settings()->GetWorkbookFilename() ) ) )
|
||||||
DisplayErrorMessage( this, _( "There was an error while saving the workbook file" ) );
|
DisplayErrorMessage( this, _( "There was an error while saving the workbook file" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1537,7 +1537,7 @@ bool SIM_PLOT_FRAME::canCloseWindow( wxCloseEvent& aEvent )
|
||||||
wxString msg = _( "Save changes to \"%s\" before closing?" );
|
wxString msg = _( "Save changes to \"%s\" before closing?" );
|
||||||
|
|
||||||
return HandleUnsavedChanges( this, wxString::Format( msg, filename.GetFullName() ),
|
return HandleUnsavedChanges( this, wxString::Format( msg, filename.GetFullName() ),
|
||||||
[&]()->bool { return saveWorkbook( filename.GetFullPath() ); } );
|
[&]()->bool { return saveWorkbook( Prj().AbsolutePath ( filename.GetFullName() ) ); } );
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue