Commit fbb923f7 authored by Stan Hammon's avatar Stan Hammon
Browse files

Fixed a minor bug in the ComponentAttributeView

The symptom was: When you added a new Category to an SBT file that did not have an associated
    Attribute Definition, it would display several unwanted Views in the Attribute Editor
parent 1923b0ac
......@@ -148,6 +148,8 @@ public:
return this->AllDefs;
}
QList<smtk::attribute::DefinitionPtr> defs;
if (attResource->activeCategories().size() == 1)
{
std::string theCategory = *(attResource->activeCategories().begin());
......@@ -155,9 +157,9 @@ public:
{
return this->AttDefMap[theCategory.c_str()];
}
return this->AllDefs;
return defs; // return an empty list
}
QList<smtk::attribute::DefinitionPtr> defs;
foreach (DefinitionPtr attDef, this->AllDefs)
{
if (attResource->passActiveCategoryCheck(attDef->categories()))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment