]> source.dussan.org Git - vaadin-framework.git/commitdiff
Corrected icon check for TabSheet captions
authorArtur Signell <artur@vaadin.com>
Thu, 15 Mar 2012 12:51:06 +0000 (14:51 +0200)
committerArtur Signell <artur@vaadin.com>
Thu, 15 Mar 2012 12:51:06 +0000 (14:51 +0200)
src/com/vaadin/terminal/gwt/client/VCaption.java

index 09f26fe8b36bf76c536f485aae68d74f53ac23c1..900c8b0680ca3605fa6da3b3d8445254f30a4598 100644 (file)
@@ -397,19 +397,22 @@ public class VCaption extends HTML {
             if (state.getCaption() != null) {
                 return true;
             }
+            if (state.getIcon() != null) {
+                return true;
+            }
         } else {
             // TODO fallback for cases where the caption has no owner (Tabsheet,
             // Accordion)
             if (uidl.getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_CAPTION) != null) {
                 return true;
             }
+            if (uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_ICON)) {
+                return true;
+            }
         }
         if (uidl.hasAttribute(AbstractComponentConnector.ATTRIBUTE_ERROR)) {
             return true;
         }
-        if (state.getIcon() != null) {
-            return true;
-        }
         if (uidl.hasAttribute(AbstractComponentConnector.ATTRIBUTE_REQUIRED)) {
             return true;
         }