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:
parent
1af7d11504
commit
6d17ef0d59
@ -758,7 +758,7 @@ bool
|
||||
TreeTable::IsNodeExpanded(const TreeTablePath& path) const
|
||||
{
|
||||
if (TreeTableNode* node = _NodeForPath(path))
|
||||
node->Row()->IsExpanded();
|
||||
return node->Row()->IsExpanded();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -950,7 +950,7 @@ TreeTable::_SetNodeExpanded(TreeTableNode* node, bool expanded,
|
||||
if (expanded && expandAncestors && node != fRootNode)
|
||||
_SetNodeExpanded(node->Parent(), true, true);
|
||||
|
||||
BColumnListView::ExpandOrCollapse(node->Row(), expanded);
|
||||
ExpandOrCollapse(node->Row(), expanded);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user