1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Creating Cateory tree items as TopTreeItem causes them to be treated like "Settings" or "Data Objects".

When the current tree item is changed (by mouse click or keyboard arrow) they are checked for their type, which disables the buttons to send/receive.
This commit is contained in:
Glenn Campigli 2013-06-24 22:58:13 +10:00
parent a3a382cc35
commit 45eaecf0af

View File

@ -132,7 +132,7 @@ TreeItem *UAVObjectTreeModel::createCategoryItems(QStringList categoryPath, Tree
TreeItem *existing = parent->findChildByName(category);
if (!existing) {
TreeItem *categoryItem = new TreeItem(category);
TreeItem *categoryItem = new TopTreeItem(category);
connect(categoryItem, SIGNAL(updateHighlight(TreeItem *)), this, SLOT(updateHighlight(TreeItem *)));
categoryItem->setHighlightManager(m_highlightManager);
parent->insertChild(categoryItem);