diff options
author | Artur Signell <artur@vaadin.com> | 2012-02-02 11:30:47 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-02-02 11:30:47 +0200 |
commit | e1253f520e295e070a5d998c658885fb1b7292e0 (patch) | |
tree | 41e739c93266c59c28d04ee7499971a9117159a5 /src | |
parent | a6fe887899907555690ccc810ec873246ff605a8 (diff) | |
download | vaadin-framework-e1253f520e295e070a5d998c658885fb1b7292e0.tar.gz vaadin-framework-e1253f520e295e070a5d998c658885fb1b7292e0.zip |
Fixed ClassCastException for VWindow
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VViewPaintable.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VViewPaintable.java b/src/com/vaadin/terminal/gwt/client/ui/VViewPaintable.java index ccf7185c14..3e8b178b1d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VViewPaintable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VViewPaintable.java @@ -167,11 +167,13 @@ public class VViewPaintable extends VAbstractPaintableWidgetContainer { } } else { // subwindows - final VPaintableWidget w = client.getPaintable(childUidl); - if (getWidgetForPaintable().subWindows.contains(w)) { - removedSubWindows.remove(w); + final VWindowPaintable w = (VWindowPaintable) client + .getPaintable(childUidl); + VWindow windowWidget = w.getWidgetForPaintable(); + if (getWidgetForPaintable().subWindows.contains(windowWidget)) { + removedSubWindows.remove(windowWidget); } else { - getWidgetForPaintable().subWindows.add((VWindow) w); + getWidgetForPaintable().subWindows.add(windowWidget); } w.updateFromUIDL(childUidl, client); } |