IDEMPIERE-454 Easy import / Fix error introduced (org.adempiere.webui.adwindow.ADSortTab cannot be cast to org.adempiere.webui.adwindow.ADTabpanel)

This commit is contained in:
Carlos Ruiz 2012-10-26 17:51:03 -05:00
parent 221f5e6522
commit 9497d00279
1 changed files with 2 additions and 1 deletions

View File

@ -1343,7 +1343,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
toolbar.enableFileImport(!changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());
//Deepak-Enabling customize button IDEMPIERE-364
toolbar.enableCustomize(((ADTabpanel)adTabbox.getSelectedTabpanel()).isGridView() && !adTabbox.getSelectedGridTab().isSortTab());
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
toolbar.enableCustomize(((ADTabpanel)adTabbox.getSelectedTabpanel()).isGridView());
toolbar.updateToolBarAndMenuWithRestriction(gridWindow.getAD_Window_ID());
}