IDEMPIERE-2436:ZK7 - NPE and Strange log after customise window grid layout (add/remove col)

This commit is contained in:
hieplq 2015-02-07 17:30:52 +07:00
parent 231054bae0
commit f694f489ec
1 changed files with 2 additions and 0 deletions

View File

@ -616,6 +616,8 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace, IFi
}
private void updateModel() {
if (listModel != null)
((GridTable)tableModel).removeTableModelListener(listModel);
listModel = new GridTableListModel((GridTable)tableModel, windowNo);
listModel.setPageSize(pageSize);
if (renderer != null && renderer.isEditing())