summaryrefslogtreecommitdiff
path: root/indra/newview/llhints.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-09-21 09:34:56 -0700
committerRichard Linden <none@none>2010-09-21 09:34:56 -0700
commite07c373bd4aef00aaa30735f722ed1b681a5d060 (patch)
tree9a6997cebf80289d275758c6c9c2007f3fbfad98 /indra/newview/llhints.cpp
parenta20a98454de522eba4da17881b85a0f16bb3c116 (diff)
parent71259fcccbfa834eab35eb3e98a7afc93786b32f (diff)
merge
Diffstat (limited to 'indra/newview/llhints.cpp')
-rw-r--r--indra/newview/llhints.cpp29
1 files changed, 13 insertions, 16 deletions
diff --git a/indra/newview/llhints.cpp b/indra/newview/llhints.cpp
index 393aa188e1..a8274b3887 100644
--- a/indra/newview/llhints.cpp
+++ b/indra/newview/llhints.cpp
@@ -310,26 +310,23 @@ std::map<LLNotificationPtr, class LLHintPopup*> LLHints::sHints;
//static
void LLHints::show(LLNotificationPtr hint)
{
- if (gSavedSettings.getBOOL("EnableUIHints"))
- {
- LLHintPopup::Params p(LLUICtrlFactory::getDefaultParams<LLHintPopup>());
+ LLHintPopup::Params p(LLUICtrlFactory::getDefaultParams<LLHintPopup>());
- LLParamSDParser parser;
- parser.readSD(hint->getPayload(), p, true);
- p.notification = hint;
+ LLParamSDParser parser;
+ parser.readSD(hint->getPayload(), p, true);
+ p.notification = hint;
- if (p.validateBlock())
- {
- LLHintPopup* popup = new LLHintPopup(p);
+ if (p.validateBlock())
+ {
+ LLHintPopup* popup = new LLHintPopup(p);
- sHints[hint] = popup;
+ sHints[hint] = popup;
- LLView* hint_holder = gViewerWindow->getHintHolder();
- if (hint_holder)
- {
- hint_holder->addChild(popup);
- popup->centerWithin(hint_holder->getLocalRect());
- }
+ LLView* hint_holder = gViewerWindow->getHintHolder();
+ if (hint_holder)
+ {
+ hint_holder->addChild(popup);
+ popup->centerWithin(hint_holder->getLocalRect());
}
}
}