]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added requestRepaint() to two setters. Fixes #2105
authorMarc Englund <marc.englund@itmill.com>
Tue, 23 Sep 2008 09:21:55 +0000 (09:21 +0000)
committerMarc Englund <marc.englund@itmill.com>
Tue, 23 Sep 2008 09:21:55 +0000 (09:21 +0000)
svn changeset:5484/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractSelect.java

index 68460748dd1ddb47d02d5f7277bc7a5ed453a58e..bad8f863da33eead7700d35e07e39522114a9f91 100644 (file)
@@ -1243,10 +1243,10 @@ public abstract class AbstractSelect extends AbstractField implements
         if ((propertyId != null)
                 && Resource.class.isAssignableFrom(getType(propertyId))) {
             itemIconPropertyId = propertyId;
-            requestRepaint();
         } else {
             itemIconPropertyId = null;
         }
+        requestRepaint();
     }
 
     /**
@@ -1500,7 +1500,10 @@ public abstract class AbstractSelect extends AbstractField implements
      * @see #isNullSelectionAllowed()
      */
     public void setNullSelectionAllowed(boolean nullSelectionAllowed) {
-        this.nullSelectionAllowed = nullSelectionAllowed;
+        if (nullSelectionAllowed != this.nullSelectionAllowed) {
+            this.nullSelectionAllowed = nullSelectionAllowed;
+            requestRepaint();
+        }
     }
 
     /**