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:
@@ -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(¬ifyCallback, _1), ctrl);
|
||||
else
|
||||
button->setClickedCallback(0, 0);
|
||||
} else {
|
||||
if (set)
|
||||
ctrl->setCommitCallback(boost::bind(¬ifyCallback, _1), ctrl);
|
||||
|
||||
Reference in New Issue
Block a user