Don't drop selection on an undo/redo.
We want to be able to restore it back to the way it was. Fixes https://gitlab.com/kicad/code/kicad/issues/5356
This commit is contained in:
parent
4e885990b8
commit
b8aee85b94
|
@ -317,11 +317,6 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::clearHighlight );
|
m_toolMgr->RunAction( PCB_ACTIONS::clearHighlight );
|
||||||
}
|
}
|
||||||
|
|
||||||
else if( evt->Action() == TA_UNDO_REDO_PRE )
|
|
||||||
{
|
|
||||||
ClearSelection();
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
else
|
||||||
evt->SetPassEvent();
|
evt->SetPassEvent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue