Do not show tabs without fields in the new ui
authorMartin Taal <martin.taal@openbravo.com>
Tue, 25 Jan 2011 23:48:36 +0100
changeset 10127 72003d0cf144
parent 10126 157e1d81beb8
child 10128 67117d6c25f3
Do not show tabs without fields in the new ui
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/StandardWindowComponent.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/StandardWindowComponent.java	Tue Jan 25 23:47:41 2011 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/StandardWindowComponent.java	Tue Jan 25 23:48:36 2011 +0100
@@ -153,7 +153,8 @@
 
     final List<OBViewTab> tempTabs = new ArrayList<OBViewTab>();
     for (Tab tab : getWindow().getADTabList()) {
-      if (!tab.isActive()) {
+      // NOTE: grid sequence and field sequence tabs do not have any fields defined!
+      if (!tab.isActive() || tab.getADFieldList().isEmpty()) {
         continue;
       }
       final OBViewTab tabComponent = createComponent(OBViewTab.class);