From 994dfc5b299843d527792d403b9986c237c3da92 Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 19 Feb 2013 04:41:04 +0100 Subject: [PATCH] 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. --- indra/newview/hippofloaterxml.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/indra/newview/hippofloaterxml.cpp b/indra/newview/hippofloaterxml.cpp index bdc1acd6e..d8af038a6 100644 --- a/indra/newview/hippofloaterxml.cpp +++ b/indra/newview/hippofloaterxml.cpp @@ -325,11 +325,6 @@ bool HippoFloaterXmlImpl::execute(LLUICtrl *ctrl, bool set = (value != "0"); if (HippoFloaterXmlImpl *floater = dynamic_cast(ctrl)) { floater->mIsNotifyOnClose = set; - } else if (LLButton *button = dynamic_cast(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);