From 9c89481175855f91fa2d46fcc631253e84f58009 Mon Sep 17 00:00:00 2001 From: Marc Englund Date: Fri, 10 Oct 2008 05:33:57 +0000 Subject: [PATCH] Does not draw window contents if we're going to another URL. Fixes #2144 svn changeset:5620/svn branch:trunk --- src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5