From 0d6684bdf041c1b53838e7e6ba8c32f9bfa57bb9 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 16 Oct 2020 08:26:19 -0700 Subject: [PATCH] Freeze GUI as well to prevent wx updates The tree model may get updated by a redraw, so we need to freeze both the model and the view while updating Fixes https://gitlab.com/kicad/code/kicad/issues/5872 --- eeschema/libedit/lib_edit_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/libedit/lib_edit_frame.cpp b/eeschema/libedit/lib_edit_frame.cpp index f387b9506f..e388e77568 100644 --- a/eeschema/libedit/lib_edit_frame.cpp +++ b/eeschema/libedit/lib_edit_frame.cpp @@ -519,6 +519,7 @@ bool LIB_EDIT_FRAME::IsSearchTreeShown() void LIB_EDIT_FRAME::FreezeSearchTree() { + m_treePane->Freeze(); m_libMgr->GetAdapter()->Freeze(); } @@ -526,6 +527,7 @@ void LIB_EDIT_FRAME::FreezeSearchTree() void LIB_EDIT_FRAME::ThawSearchTree() { m_libMgr->GetAdapter()->Thaw(); + m_treePane->Thaw(); }