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
This commit is contained in:
Nathan Curtis
2008-05-13 23:41:32 +00:00
parent 54ac003a1b
commit 0378cabcaa
@@ -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.
*/