Always update the hierarchy navigator when setting the current sheet in the frame
Fix #9221
This commit is contained in:
parent
71602475eb
commit
064ab933dd
|
@ -314,4 +314,6 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
|
|||
editTool->UpdateNetHighlighting( dummy );
|
||||
|
||||
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)
|
||||
|
||||
UpdateHierarchyNavigator();
|
||||
}
|
||||
|
|
|
@ -1987,7 +1987,6 @@ int SCH_EDITOR_CONTROL::EnterSheet( const TOOL_EVENT& aEvent )
|
|||
|
||||
m_frame->GetCurrentSheet().push_back( sheet );
|
||||
m_frame->DisplayCurrentSheet();
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -2006,7 +2005,6 @@ int SCH_EDITOR_CONTROL::LeaveSheet( const TOOL_EVENT& aEvent )
|
|||
|
||||
m_frame->GetCurrentSheet().pop_back();
|
||||
m_frame->DisplayCurrentSheet();
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -91,7 +91,6 @@ int SCH_NAVIGATE_TOOL::EnterSheet( const TOOL_EVENT& aEvent )
|
|||
|
||||
m_frame->GetCurrentSheet().push_back( sheet );
|
||||
m_frame->DisplayCurrentSheet();
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -107,7 +106,6 @@ int SCH_NAVIGATE_TOOL::LeaveSheet( const TOOL_EVENT& aEvent )
|
|||
|
||||
m_frame->GetCurrentSheet().pop_back();
|
||||
m_frame->DisplayCurrentSheet();
|
||||
m_frame->UpdateHierarchyNavigator();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue