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:
parent
221f5e6522
commit
9497d00279
|
@ -1343,7 +1343,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
toolbar.enableFileImport(!changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());
|
toolbar.enableFileImport(!changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());
|
||||||
|
|
||||||
//Deepak-Enabling customize button IDEMPIERE-364
|
//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());
|
toolbar.updateToolBarAndMenuWithRestriction(gridWindow.getAD_Window_ID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue