Commit efd4c123 authored by jean-pierre charras's avatar jean-pierre charras

Fix bug #1369281 ( Pcbnew, initial save broken )

parent c1e0a8d0
......@@ -316,9 +316,12 @@ void PCB_EDIT_FRAME::Files_io( wxCommandEvent& event )
break;
case ID_SAVE_BOARD:
SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) );
break;
if( ! GetBoard()->GetFileName().IsEmpty() )
{
SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) );
break;
}
// Fall through
case ID_SAVE_BOARD_AS:
{
wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment