]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove the right component when changing content
authorLeif Åstrand <leif@vaadin.com>
Mon, 21 Nov 2011 12:25:31 +0000 (14:25 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 21 Nov 2011 12:25:31 +0000 (14:25 +0200)
src/com/vaadin/ui/Root.java

index 0be78803b7be77ac8b67fd4e11a0a35d6cb57660..ce4d268bf4d4b8cd9c153a2b19a90020abc656f7 100644 (file)
@@ -520,7 +520,7 @@ public class Root extends AbstractComponentContainer {
 
     public void setContent(ComponentContainer content) {
         if (this.content != null) {
-            super.removeComponent(content);
+            super.removeComponent(this.content);
         }
         this.content = content;
         if (content != null) {