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:
parent
a3a382cc35
commit
45eaecf0af
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user