Reset tools before switching footprints.
Fixes: lp:1776777 * https://bugs.launchpad.net/kicad/+bug/1776777
This commit is contained in:
parent
0d4d24ed22
commit
b37969f584
|
@ -466,9 +466,9 @@ void FOOTPRINT_VIEWER_FRAME::ClickOnFootprintList( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
setCurFootprintName( name );
|
setCurFootprintName( name );
|
||||||
|
|
||||||
SetCurItem( NULL );
|
// Delete the current footprint (MUST reset tools first)
|
||||||
|
GetToolManager()->ResetTools( TOOL_BASE::MODEL_RELOAD );
|
||||||
// Delete the current footprint
|
SetCurItem( nullptr );
|
||||||
GetBoard()->m_Modules.DeleteAll();
|
GetBoard()->m_Modules.DeleteAll();
|
||||||
|
|
||||||
LIB_ID id;
|
LIB_ID id;
|
||||||
|
|
Loading…
Reference in New Issue