Eeschema: fix broken modified flag handling.

This commit is contained in:
Wayne Stambaugh 2019-02-06 13:20:34 -05:00
parent 507229809c
commit 6bb8fde48a
1 changed files with 10 additions and 7 deletions

View File

@ -531,15 +531,18 @@ bool SCH_EDIT_FRAME::rescueProject( RESCUER& aRescuer, bool aRunningOnDemand )
if( !RESCUER::RescueProject( this, aRescuer, aRunningOnDemand ) )
return false;
LIB_VIEW_FRAME* viewer = (LIB_VIEW_FRAME*) Kiway().Player( FRAME_SCH_VIEWER, false );
if( aRescuer.GetCandidateCount() )
{
LIB_VIEW_FRAME* viewer = (LIB_VIEW_FRAME*) Kiway().Player( FRAME_SCH_VIEWER, false );
if( viewer )
viewer->ReCreateListLib();
if( viewer )
viewer->ReCreateListLib();
GetScreen()->ClearUndoORRedoList( GetScreen()->m_UndoList, 1 );
SyncView();
GetCanvas()->Refresh();
OnModify();
GetScreen()->ClearUndoORRedoList( GetScreen()->m_UndoList, 1 );
SyncView();
GetCanvas()->Refresh();
OnModify();
}
return true;
}