add support for board listeners

This commit is contained in:
Oleg Endo
2020-04-21 13:23:56 +00:00
committed by Jon Evans
parent e3aec20f82
commit 7bf8a744f1
7 changed files with 150 additions and 10 deletions
+2
View File
@@ -262,6 +262,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
connectivity->Update( boardItem );
view->Update( boardItem );
board->OnItemChanged( boardItem );
// if no undo entry is needed, the copy would create a memory leak
if( !aCreateUndoEntry )
@@ -395,6 +396,7 @@ void BOARD_COMMIT::Revert()
view->Add( item );
connectivity->Add( item );
board->OnItemChanged( item );
delete copy;
break;
}