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-04-01 01:25:29 +01:00
parent b57e9492b1
commit bc4cc00332
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; break;
case 1: 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; break;
default: // column == -1 is used for default Compare function default: // column == -1 is used for default Compare function