Skip to content
Snippets Groups Projects
Commit ee12b258 authored by srosse's avatar srosse
Browse files

OO-1883: show the indeterminated state if the node are open too

parent 94c45b7a
No related branches found
No related tags found
No related merge requests found
...@@ -100,14 +100,14 @@ public class MenuTreeItem extends FormItemImpl { ...@@ -100,14 +100,14 @@ public class MenuTreeItem extends FormItemImpl {
} }
public boolean isIndeterminate(TreeNode node) { public boolean isIndeterminate(TreeNode node) {
if(treeCmp.isSelected(node) || treeCmp.isOpen(node)) { if(treeCmp.isSelected(node) /* OO-1883 || treeCmp.isOpen(node) */) {
return false; return false;
} }
for(int i=node.getChildCount(); i-->0; ) { for(int i=node.getChildCount(); i-->0; ) {
TreeNode child = (TreeNode)node.getChildAt(i); TreeNode child = (TreeNode)node.getChildAt(i);
if(treeCmp.isOpen(child)) { /* OO-1883 if(treeCmp.isOpen(child)) {
return false; return false;
} }*/
if(isSelectRec(child)) { if(isSelectRec(child)) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment