From 33e594e63edb667a49289bf004a1151966841024 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 31 Mar 2019 18:25:29 +0100 Subject: [PATCH] Update description when tree item is in editor. Fixes: lp:1820298 * https://bugs.launchpad.net/kicad/+bug/1820298 --- pcbnew/fp_tree_synchronizing_adapter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/fp_tree_synchronizing_adapter.cpp b/pcbnew/fp_tree_synchronizing_adapter.cpp index 55258e0502..f8620da905 100644 --- a/pcbnew/fp_tree_synchronizing_adapter.cpp +++ b/pcbnew/fp_tree_synchronizing_adapter.cpp @@ -175,7 +175,10 @@ void FP_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataViewIte break; case 1: - aVariant = node->Desc; + if( node->LibId == m_frame->GetLoadedFPID() && !m_frame->IsCurrentFPFromBoard() ) + aVariant = m_frame->GetBoard()->m_Modules->GetDescription(); + else + aVariant = node->Desc; break; default: // column == -1 is used for default Compare function