Fix assertion in CvPcb, Eeschema, and Pcbnew when cancel is selected from save on exit dialog.

This commit is contained in:
Jon Neal 2015-06-25 15:06:51 -04:00 committed by Wayne Stambaugh
parent 928e155450
commit 3e398ce1c6
3 changed files with 6 additions and 4 deletions

View File

@ -235,7 +235,7 @@ void CVPCB_MAINFRAME::OnSize( wxSizeEvent& event )
void CVPCB_MAINFRAME::OnQuit( wxCommandEvent& event )
{
Close( true );
Close( false );
}

View File

@ -1127,14 +1127,16 @@ void SCH_EDIT_FRAME::OnOpenLibraryEditor( wxCommandEvent& event )
}
}
void SCH_EDIT_FRAME::OnRescueProject( wxCommandEvent& event )
{
RescueProject( true );
}
void SCH_EDIT_FRAME::OnExit( wxCommandEvent& event )
{
Close( true );
Close( false );
}
@ -1266,7 +1268,7 @@ void SCH_EDIT_FRAME::addCurrentItemToList( wxDC* aDC )
( (SCH_SHEET*)undoItem )->AddPin( (SCH_SHEET_PIN*) item );
else
wxLogMessage( wxT( "addCurrentItemToList: expected type = SCH_SHEET_PIN_T, actual type = %d" ),
item->Type() );
item->Type() );
}
}
else

View File

@ -567,7 +567,7 @@ void PCB_EDIT_FRAME::ReFillLayerWidget()
void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event )
{
Close( true );
Close( false );
}