aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Button.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-12 08:58:21 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-07-12 08:58:21 +0000
commit489180bae60792e43a72e9dbbf50094a2e49a4fe (patch)
tree98855357147f32aaadc6fd60cb068634dc942e71 /src/com/vaadin/ui/Button.java
parent9ae5fd9d4ca9193e64532e805cfebbd786f02cd3 (diff)
downloadvaadin-framework-489180bae60792e43a72e9dbbf50094a2e49a4fe.tar.gz
vaadin-framework-489180bae60792e43a72e9dbbf50094a2e49a4fe.zip
fixes #5339
svn changeset:14173/svn branch:6.4
Diffstat (limited to 'src/com/vaadin/ui/Button.java')
-rw-r--r--src/com/vaadin/ui/Button.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java
index 92e578baad..a373216908 100644
--- a/src/com/vaadin/ui/Button.java
+++ b/src/com/vaadin/ui/Button.java
@@ -473,7 +473,9 @@ public class Button extends AbstractField implements FieldEvents.BlurNotifier,
@Override
public void handleAction(Object sender, Object target) {
- button.fireClick();
+ if (button.isEnabled() && !button.isReadOnly()) {
+ button.fireClick();
+ }
}
}