Commit fd0a3348 authored by Maciej Suminski's avatar Maciej Suminski

More elegant way of handling interruption of current modifications.

parent c1d6e444
...@@ -148,8 +148,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent ) ...@@ -148,8 +148,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
if( restore ) if( restore )
{ {
// Modifications has to be rollbacked, so restore the previous state of items // Modifications has to be rollbacked, so restore the previous state of items
wxCommandEvent dummy; wxCommandEvent undoEvent( wxEVT_TOOL, wxID_UNDO );
editFrame->GetBoardFromUndoList( dummy ); wxPostEvent( editFrame, undoEvent );
} }
else else
{ {
......
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