Merged release-1.0c into development

This commit is contained in:
Heng Sin Low 2013-09-11 13:27:16 +08:00
commit 1e29c6bd6d
1 changed files with 5 additions and 1 deletions

View File

@ -1210,6 +1210,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
{
boolean refresh=true;
Treeitem item = treePanel.getTree().getSelectedItem();
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
if (item != null)
{
@SuppressWarnings("unchecked")
@ -1219,7 +1220,10 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
refresh = false;
}
}
if ("Saved".equals(e.getAD_Message()) && model.find(null, gridTab.getRecord_ID())==null)
{
addNewNode();
}
if (refresh)
{
int AD_Tree_ID = Env.getContextAsInt (Env.getCtx(), getWindowNo(), "AD_Tree_ID", true);