summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r--indra/llui/llbutton.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index 2bcc89b59f..8ae6dd2ea5 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -778,9 +778,8 @@ void LLButton::setToggleState(BOOL b)
{
if( b != mToggleState )
{
- mToggleState = b;
- LLValueChangedEvent *evt = new LLValueChangedEvent(this, mToggleState);
- fireEvent(evt, "");
+ setControlValue(b); // will fire LLControlVariable callbacks (if any)
+ mToggleState = b; // may or may not be redundant
}
}