From 087a90cf999675940fdb113e76e96c660a1c84bb Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 24 Nov 2019 01:24:32 +0000 Subject: [PATCH] eeschema: Update titlebar when searching schematics Fixes: lp:1851641 * https://bugs.launchpad.net/kicad/+bug/1851641 --- eeschema/sch_edit_frame.h | 4 ++++ eeschema/tools/sch_editor_control.cpp | 1 + 2 files changed, 5 insertions(+) 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; }