summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-10-25 17:35:50 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-10-25 17:35:50 -0700
commiteee8a0e1134723d59ce8150d0341488053566121 (patch)
treeb7df0df533dcf01fde6e4d58dd96dd1a4800cd8b /indra
parenta64f7e1c7b6c60e2f43b75d150cf5e4ee5a5afcd (diff)
parenta5f3c70eeff4aeeb3c5fd463bed5be7cfb2cf60e (diff)
merge
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltoolbar.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp
index 19dc688504..287e3e2b41 100644
--- a/indra/llui/lltoolbar.cpp
+++ b/indra/llui/lltoolbar.cpp
@@ -827,6 +827,11 @@ void LLToolBar::createButtons()
{
BOOST_FOREACH(LLToolBarButton* button, mButtons)
{
+ if (mButtonRemoveSignal)
+ {
+ (*mButtonRemoveSignal)(button);
+ }
+
delete button;
}
mButtons.clear();
@@ -838,6 +843,11 @@ void LLToolBar::createButtons()
mButtons.push_back(button);
mButtonPanel->addChild(button);
mButtonMap.insert(std::make_pair(command_id.uuid(), button));
+
+ if (mButtonAddSignal)
+ {
+ (*mButtonAddSignal)(button);
+ }
}
mNeedsLayout = true;
}