IDEMPIERE-1364 Problem with the Find on any window having tree panel - thanks to Richard Morales

This commit is contained in:
Carlos Ruiz 2013-09-26 16:58:48 -05:00
parent 761a07b08a
commit 0b546eaed7
1 changed files with 1 additions and 4 deletions

View File

@ -52,7 +52,6 @@ import org.adempiere.webui.editor.WebEditorFactory;
import org.adempiere.webui.event.ContextMenuListener;
import org.adempiere.webui.panel.HelpController;
import org.adempiere.webui.util.GridTabDataBinder;
import org.adempiere.webui.util.TreeUtils;
import org.adempiere.webui.window.FDialog;
import org.compiere.model.DataStatusEvent;
import org.compiere.model.DataStatusListener;
@ -1293,9 +1292,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
if (recordId <= 0) return;
//force on init render
if (TreeUtils.isOnInitRenderPosted(treePanel.getTree()) || treePanel.getTree().getTreechildren() == null) {
treePanel.getTree().onInitRender();
}
treePanel.getTree().onInitRender();
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
if (treePanel.getTree().getSelectedItem() != null) {