Simplify the previous commit because commit callback for buttons is now

identical to the clicked callback, obviating the need to distinguish between
these control types.
This commit is contained in:
Melanie
2013-02-19 04:41:04 +01:00
committed by Lirusaito
parent 2b9c0e34c7
commit 994dfc5b29

View File

@@ -325,11 +325,6 @@ bool HippoFloaterXmlImpl::execute(LLUICtrl *ctrl,
bool set = (value != "0");
if (HippoFloaterXmlImpl *floater = dynamic_cast<HippoFloaterXmlImpl*>(ctrl)) {
floater->mIsNotifyOnClose = set;
} else if (LLButton *button = dynamic_cast<LLButton*>(ctrl)) {
if (set)
button->setClickedCallback(boost::bind(&notifyCallback, _1), ctrl);
else
button->setClickedCallback(0, 0);
} else {
if (set)
ctrl->setCommitCallback(boost::bind(&notifyCallback, _1), ctrl);