]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8170: Symmetrically with attach(), Window.detach() should call detach() for subwindows
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Thu, 22 Dec 2011 14:14:05 +0000 (14:14 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Thu, 22 Dec 2011 14:14:05 +0000 (14:14 +0000)
svn changeset:22472/svn branch:6.7

src/com/vaadin/ui/Window.java

index 661174ca8556f242dffbe1c62a5142ce75436751..7e33f91d312f6d63411d7a2b5c33813f8af7f3b3 100644 (file)
@@ -2391,4 +2391,17 @@ public class Window extends Panel implements URIHandler, ParameterHandler,
             w.attach();
         }
     }
+
+    /**
+     * Notifies the child components and subwindows that the window is detached
+     * from the application.
+     */
+    @Override
+    public void detach() {
+        super.detach();
+        for (Window w : subwindows) {
+            w.detach();
+        }
+    }
+
 }