1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-571 change generic instance tree node name to actual object name

the other LP-571 issue is addressed by LP-567
This commit is contained in:
Philippe Renon 2018-03-26 22:26:06 +02:00
parent bf3ce97e32
commit 7996675708

View File

@ -248,7 +248,7 @@ DataObjectTreeItem *UAVObjectTreeModel::createDataObject(UAVDataObject *obj)
InstanceTreeItem *UAVObjectTreeModel::createDataObjectInstance(UAVDataObject *obj) InstanceTreeItem *UAVObjectTreeModel::createDataObjectInstance(UAVDataObject *obj)
{ {
QString name = tr("Instance") + " " + QString::number((int)obj->getInstID()); QString name = obj->getName() + " " + QString::number((int)obj->getInstID());
InstanceTreeItem *item = new InstanceTreeItem(obj, name); InstanceTreeItem *item = new InstanceTreeItem(obj, name);
item->setHighlightManager(m_highlightManager); item->setHighlightManager(m_highlightManager);