hg backout f3dd4e22afdf / IDEMPIERE-1364

This commit is contained in:
Carlos Ruiz 2013-10-16 17:20:07 -05:00
parent e3181de305
commit 2a7ef9dda3
1 changed files with 4 additions and 1 deletions

View File

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