summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-02-15 15:32:09 +0200
committerLeif Åstrand <leif@vaadin.com>2012-02-15 15:32:09 +0200
commitc6b25e1cd70e4c0070df500b99f476bf1a1551b1 (patch)
tree62502dd1c0e27760811ec7a99afee7a421f99f3d /src/com/vaadin
parent30df5537723d3b09d7a201f57c5eb7b687474b88 (diff)
parent591dc74d3f6013091e56d7b423399cc6e3f68e04 (diff)
downloadvaadin-framework-c6b25e1cd70e4c0070df500b99f476bf1a1551b1.tar.gz
vaadin-framework-c6b25e1cd70e4c0070df500b99f476bf1a1551b1.zip
Merge remote-tracking branch 'origin/6.8'
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
index 9155f9932a..392c500f1d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
@@ -317,16 +317,13 @@ public class VTabsheet extends VTabsheetBase {
}
public Tab addTab() {
- // Must check this before insert as insert updates the tab count
- boolean firstTab = (getTabCount() == 0);
-
Tab t = new Tab(this);
+ int tabIndex = getTabCount();
// Logical attach
- int spacerIndex = getTabCount();
- insert(t, tr, spacerIndex, true);
+ insert(t, tr, tabIndex, true);
- if (firstTab) {
+ if (tabIndex == 0) {
// Set the "first" style
t.setStyleNames(false, true);
}