]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #4014. Also modified poller to avoid adding variable burst to queue in case...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 4 May 2011 12:50:19 +0000 (12:50 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 4 May 2011 12:50:19 +0000 (12:50 +0000)
svn changeset:18628/svn branch:6.6

src/com/vaadin/terminal/gwt/client/ui/VProgressIndicator.java

index 65fb5179e979375ad5d4318ed73e06ea746fd3e1..ffc551e148f2d9f1ac9010bd64fcc201c4facda7 100644 (file)
@@ -11,6 +11,7 @@ import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.Paintable;
 import com.vaadin.terminal.gwt.client.UIDL;
+import com.vaadin.terminal.gwt.client.Util;
 
 public class VProgressIndicator extends Widget implements Paintable {
 
@@ -94,7 +95,10 @@ public class VProgressIndicator extends Widget implements Paintable {
 
         @Override
         public void run() {
-            client.sendPendingVariableChanges();
+            if (!client.hasActiveRequest()
+                    && Util.isAttachedAndDisplayed(VProgressIndicator.this)) {
+                client.sendPendingVariableChanges();
+            }
         }
 
     }