Fix bug #1369281 ( Pcbnew, initial save broken )
This commit is contained in:
parent
c1e0a8d067
commit
efd4c123eb
|
@ -316,9 +316,12 @@ void PCB_EDIT_FRAME::Files_io( wxCommandEvent& event )
|
|||
break;
|
||||
|
||||
case ID_SAVE_BOARD:
|
||||
if( ! GetBoard()->GetFileName().IsEmpty() )
|
||||
{
|
||||
SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) );
|
||||
break;
|
||||
|
||||
}
|
||||
// Fall through
|
||||
case ID_SAVE_BOARD_AS:
|
||||
{
|
||||
wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );
|
||||
|
|
Loading…
Reference in New Issue