From 0378cabcaa9f7bf2f745aad62c7b61b7848e10c6 Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 13 May 2008 23:41:32 +0000 Subject: [PATCH] That last bug would have been a lot easier to track down if a disabled link button didn't still look like it should be clickable. Let's turn buttonMode off when we get disabled. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@492 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/CommandLinkButton.as | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/as/com/threerings/flex/CommandLinkButton.as b/src/as/com/threerings/flex/CommandLinkButton.as index d4905e16..cc78f748 100644 --- a/src/as/com/threerings/flex/CommandLinkButton.as +++ b/src/as/com/threerings/flex/CommandLinkButton.as @@ -50,6 +50,17 @@ public class CommandLinkButton extends LinkButton _arg = arg; } + override public function set enabled (enable :Boolean) :void + { + super.enabled = enable; + + if (enable) { + buttonMode = true; + } else { + buttonMode = false; + } + } + /** * Set the command and argument to be issued when this button is pressed. */