summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationhinthandler.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-12 12:20:38 -0700
committerRichard Linden <none@none>2010-08-12 12:20:38 -0700
commitbd897431e14aff091d5f45425816ddec4b2538c7 (patch)
tree392254bc651d16138143371c87341759e6595011 /indra/newview/llnotificationhinthandler.cpp
parent41fe9750c82605ccfbaf8f9b0f08b9068de702d3 (diff)
remaining hints defined
Diffstat (limited to 'indra/newview/llnotificationhinthandler.cpp')
-rw-r--r--indra/newview/llnotificationhinthandler.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llnotificationhinthandler.cpp b/indra/newview/llnotificationhinthandler.cpp
index f5c0330b2a..a9460821b0 100644
--- a/indra/newview/llnotificationhinthandler.cpp
+++ b/indra/newview/llnotificationhinthandler.cpp
@@ -49,10 +49,16 @@ LLHintHandler::~LLHintHandler()
bool LLHintHandler::processNotification(const LLSD& notify)
{
- if (notify["sigtype"].asString() == "add" || notify["sigtype"].asString() == "load")
+ LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID());
+
+ std::string sigtype = notify["sigtype"].asString();
+ if (sigtype == "add" || sigtype == "load")
{
- LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID());
LLHints::show(notification);
}
+ else if (sigtype == "delete")
+ {
+ LLHints::hide(notification);
+ }
return false;
}