IDEMPIERE-1222 Folder should be removed as menu lookup option

This commit is contained in:
Elaine Tan 2013-07-31 12:51:56 +08:00
parent bbfe58d4f0
commit 063b859619
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
protected boolean isFolder(Treeitem treeItem) {
List<Component> list = treeItem.getChildren();
for (Component c : list) {
if (c instanceof Treechildren && ((Treechildren)c).getChildren().size() > 1) {
if (c instanceof Treechildren && ((Treechildren)c).getChildren().size() > 0) {
return true;
}
}