refs #900, filtered flag for containerOrFilteredContainer

more reliable than other approaches
This commit is contained in:
Klaus Basan
2017-03-06 20:03:17 +01:00
committed by Mathew Sutcliffe
parent 6999a97f73
commit 30ef3eedf9
4 changed files with 7 additions and 5 deletions

View File

@@ -519,14 +519,16 @@ namespace BlackGui
}
template <typename ObjectType, typename ContainerType, bool UseCompare>
const ContainerType &CListModelBase<ObjectType, ContainerType, UseCompare>::containerOrFilteredContainer() const
const ContainerType &CListModelBase<ObjectType, ContainerType, UseCompare>::containerOrFilteredContainer(bool *filtered) const
{
if (this->hasFilter())
{
if (filtered) { *filtered = true; }
return this->m_containerFiltered;
}
else
{
if (filtered) { *filtered = false; }
return this->m_container;
}
}