summaryrefslogtreecommitdiff
path: root/indra/newview/llfirstuse.cpp
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-09-20 16:21:00 -0700
committerRichard Nelson <none@none>2010-09-20 16:21:00 -0700
commit7c0a6df30a1d78611782767763b7710702b96336 (patch)
treead84c3393e59b657a147e0f07f83130326332eeb /indra/newview/llfirstuse.cpp
parent325991a002894011b1da8dd54b16b4cb15f77554 (diff)
EXP-60 FIX not showing after Re-enabling Hints in same session
Diffstat (limited to 'indra/newview/llfirstuse.cpp')
-rw-r--r--indra/newview/llfirstuse.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llfirstuse.cpp b/indra/newview/llfirstuse.cpp
index 1764d6b145..dd08706f4f 100644
--- a/indra/newview/llfirstuse.cpp
+++ b/indra/newview/llfirstuse.cpp
@@ -130,12 +130,15 @@ void LLFirstUse::firstUseNotification(const std::string& control_var, bool enabl
if (enable)
{
- LL_DEBUGS("LLFirstUse") << "Trigger first use notification " << notification_name << LL_ENDL;
+ if (gSavedSettings.getBOOL("EnableUIHints"))
+ {
+ LL_DEBUGS("LLFirstUse") << "Trigger first use notification " << notification_name << LL_ENDL;
- // if notification doesn't already exist and this notification hasn't been disabled...
- if (gWarningSettings.getBOOL(control_var))
- { // create new notification
- LLNotifications::instance().add(LLNotification::Params().name(notification_name).substitutions(args).payload(payload.with("control_var", control_var)));
+ // if notification doesn't already exist and this notification hasn't been disabled...
+ if (gWarningSettings.getBOOL(control_var))
+ { // create new notification
+ LLNotifications::instance().add(LLNotification::Params().name(notification_name).substitutions(args).payload(payload.with("control_var", control_var)));
+ }
}
}
else