Update description when tree item is in editor.

Fixes: lp:1820298
* https://bugs.launchpad.net/kicad/+bug/1820298
This commit is contained in:
Jeff Young 2019-03-31 18:25:29 +01:00
parent b9a8680735
commit 33e594e63e
1 changed files with 4 additions and 1 deletions

View File

@ -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