mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-706 Fixed an issue with metadata tree nodes not showing correct known statux.
This commit is contained in:
parent
3246cf9756
commit
1ac94cfb71
@ -71,7 +71,7 @@ public:
|
||||
virtual void apply() {}
|
||||
virtual bool isKnown()
|
||||
{
|
||||
return !m_field->getObject()->isSettingsObject() || m_field->getObject()->isKnown();
|
||||
return parent()->isKnown();
|
||||
}
|
||||
|
||||
|
||||
|
@ -314,6 +314,12 @@ public:
|
||||
MetaObjectTreeItem(UAVObject *object, const QVariant &data, TreeItem *parent = 0) :
|
||||
ObjectTreeItem(data, object, parent)
|
||||
{}
|
||||
|
||||
bool isKnown()
|
||||
{
|
||||
return parent()->isKnown();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
class DataObjectTreeItem : public ObjectTreeItem {
|
||||
@ -374,7 +380,7 @@ public:
|
||||
QVariant data(int column) const;
|
||||
bool isKnown()
|
||||
{
|
||||
return !m_field->getObject()->isSettingsObject() || m_field->getObject()->isKnown();
|
||||
return parent()->isKnown();
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user