diff options
author | Artur Signell <artur@vaadin.com> | 2013-05-27 16:37:32 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-05-28 12:45:13 +0300 |
commit | e52df7cdf8bbee662f539b1cee7344debb07c586 (patch) | |
tree | b7408dce2400ee2c06bbf8dd8844e9b495c23d60 /server/src/com/vaadin/ui/LegacyWindow.java | |
parent | cb1f63b8606ae23088a62f26dc8979885c5cd19c (diff) | |
download | vaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.tar.gz vaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.zip |
Added ComponentConnector.isAttached (#11928)
Change-Id: I70d7d78a0d9de76080f6e0770a48504af8abdd84
Diffstat (limited to 'server/src/com/vaadin/ui/LegacyWindow.java')
-rw-r--r-- | server/src/com/vaadin/ui/LegacyWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/LegacyWindow.java b/server/src/com/vaadin/ui/LegacyWindow.java index 1b66b608c1..458b09390d 100644 --- a/server/src/com/vaadin/ui/LegacyWindow.java +++ b/server/src/com/vaadin/ui/LegacyWindow.java @@ -125,7 +125,7 @@ public class LegacyWindow extends UI { public void setName(String name) { this.name = name; // The name can not be changed in application - if (getSession() != null) { + if (isAttached()) { throw new IllegalStateException( "Window name can not be changed while " + "the window is in application"); |