diff options
-rw-r--r-- | src/com/vaadin/ui/Window.java | 13 |
1 files changed, 13 insertions, 0 deletions
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(); + } + } + } |