]> source.dussan.org Git - vaadin-framework.git/commitdiff
Real fix for TabSheet TestBench compatibility
authorArtur Signell <artur@vaadin.com>
Wed, 14 Mar 2012 14:19:35 +0000 (16:19 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 14 Mar 2012 14:19:35 +0000 (16:19 +0200)
src/com/vaadin/terminal/gwt/client/ComponentLocator.java

index f6aaf3edd394bbe36bf28ff99f6dbb6f6528a5ee..fa8b3fc179bb481ddfb1351f87bb0322df1ee690 100644 (file)
@@ -466,10 +466,10 @@ public class ComponentLocator {
                     continue;
                 }
 
-                if (w instanceof VTabsheetPanel && !"0".equals(indexString)) {
+                if (w instanceof VTabsheetPanel && widgetPosition != 0) {
                     // TabSheetPanel now only contains 1 connector => the index
                     // is always 0 which indicates the widget in the active tab
-                    indexString = "0";
+                    widgetPosition = 0;
                 }
 
                 /*