]> source.dussan.org Git - vaadin-framework.git/commitdiff
TabSheet: break out of loop earlier when suitable selected component found
authorHenri Sara <henri.sara@itmill.com>
Wed, 26 May 2010 11:09:50 +0000 (11:09 +0000)
committerHenri Sara <henri.sara@itmill.com>
Wed, 26 May 2010 11:09:50 +0000 (11:09 +0000)
svn changeset:13374/svn branch:6.3

src/com/vaadin/ui/TabSheet.java

index f6dae38372bc0343ad16d23ce8524beae7c38510..02af64a5fe34f53a9a10f13196ce567e2c10471c 100644 (file)
@@ -495,6 +495,7 @@ public class TabSheet extends AbstractComponentContainer {
                 // it
                 if (tab.isEnabled() && tab.isVisible()) {
                     selected = component;
+                    break;
                 } else {
                     /*
                      * The current selection is not valid but this tab cannot be