diff --git a/eeschema/sch_edit_frame.h b/eeschema/sch_edit_frame.h index 4089a6d869..c8df4ca280 100644 --- a/eeschema/sch_edit_frame.h +++ b/eeschema/sch_edit_frame.h @@ -106,6 +106,10 @@ enum SCH_CLEANUP_FLAGS { */ class SCH_EDIT_FRAME : public SCH_BASE_FRAME { + // The schematic editor control class should be able to access some internal + // functions of the editor frame. + friend class SCH_EDITOR_CONTROL; + private: wxString m_SelectedNetName; diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 9561ddec1f..ced61dbd99 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -167,6 +167,7 @@ int SCH_EDITOR_CONTROL::UpdateFind( const TOOL_EVENT& aEvent ) getView()->UpdateItems(); m_frame->GetCanvas()->Refresh(); + m_frame->UpdateTitle(); return 0; }