]> source.dussan.org Git - vaadin-framework.git/commitdiff
avoid dual unregistering of containers. May help with #1827
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 23 Jun 2008 12:02:14 +0000 (12:02 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 23 Jun 2008 12:02:14 +0000 (12:02 +0000)
svn changeset:4939/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java

index fa1d61c224df58c85f0b161ebf6a1180078a6a11..ba9534efdafc68903309ac71f454bc8e2fbf6c54 100755 (executable)
@@ -560,8 +560,7 @@ public class ApplicationConnection {
             final Widget w = (Widget) it.next();
             if (w instanceof Paintable) {
                 unregisterPaintable((Paintable) w);
-            }
-            if (w instanceof HasWidgets) {
+            } else if (w instanceof HasWidgets) {
                 unregisterChildPaintables((HasWidgets) w);
             }
         }