TreeTable:
* IsNodeExpanded(): It always returned false due to a missing return. * _SetNodeExpanded(): We must call our version of ExpandOrCollapse() or the listeners won't be notified. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33508 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -758,7 +758,7 @@ bool
|
|||||||
TreeTable::IsNodeExpanded(const TreeTablePath& path) const
|
TreeTable::IsNodeExpanded(const TreeTablePath& path) const
|
||||||
{
|
{
|
||||||
if (TreeTableNode* node = _NodeForPath(path))
|
if (TreeTableNode* node = _NodeForPath(path))
|
||||||
node->Row()->IsExpanded();
|
return node->Row()->IsExpanded();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -950,7 +950,7 @@ TreeTable::_SetNodeExpanded(TreeTableNode* node, bool expanded,
|
|||||||
if (expanded && expandAncestors && node != fRootNode)
|
if (expanded && expandAncestors && node != fRootNode)
|
||||||
_SetNodeExpanded(node->Parent(), true, true);
|
_SetNodeExpanded(node->Parent(), true, true);
|
||||||
|
|
||||||
BColumnListView::ExpandOrCollapse(node->Row(), expanded);
|
ExpandOrCollapse(node->Row(), expanded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user