From: Johannes Dahlström Date: Thu, 22 Dec 2011 14:14:05 +0000 (+0000) Subject: #8170: Symmetrically with attach(), Window.detach() should call detach() for subwindows X-Git-Tag: 7.0.0.alpha2~485^2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f4dd777d871553606968ee103b1cc0416401a49a;p=vaadin-framework.git #8170: Symmetrically with attach(), Window.detach() should call detach() for subwindows svn changeset:22472/svn branch:6.7 --- diff --git a/src/com/vaadin/ui/Window.java b/src/com/vaadin/ui/Window.java index 661174ca85..7e33f91d31 100644 --- a/src/com/vaadin/ui/Window.java +++ b/src/com/vaadin/ui/Window.java @@ -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(); + } + } + }