From: Marc Englund Date: Fri, 10 Oct 2008 05:33:57 +0000 (+0000) Subject: Does not draw window contents if we're going to another URL. Fixes #2144 X-Git-Tag: 6.7.0.beta1~4003 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c89481175855f91fa2d46fcc631253e84f58009;p=vaadin-framework.git Does not draw window contents if we're going to another URL. Fixes #2144 svn changeset:5620/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java index 8e601bd140..5f831124fc 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java @@ -149,6 +149,7 @@ public class IView extends SimplePanel implements Container, int childIndex = 0; // Open URL:s + boolean isClosed = false; // was this window closed? while (childIndex < uidl.getChildCount() && "open".equals(uidl.getChildUIDL(childIndex).getTag())) { final UIDL open = uidl.getChildUIDL(childIndex); @@ -157,6 +158,7 @@ public class IView extends SimplePanel implements Container, if (target == null) { // This window is closing. Send close event before // going to the new url + isClosed = true; onWindowClosed(); goTo(url); } else { @@ -165,6 +167,10 @@ public class IView extends SimplePanel implements Container, } childIndex++; } + if (isClosed) { + // don't render the content + return; + } // Draw this application level window UIDL childUidl = uidl.getChildUIDL(childIndex);