diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-04-23 13:24:09 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-04-23 13:24:09 -0700 |
commit | a42dcc3f5e8dbddbc83500371bcb3d0ca8d91a3b (patch) | |
tree | 3eafe790e4b51122d6d56c025856a8eb3ca36880 /indra/newview/lltoastpanel.cpp | |
parent | e1b3919a4fec68f57be6d6de2839dc31b654609f (diff) | |
parent | e82ed4e8761be902cf3a4d80c337e0cd44d41b17 (diff) |
automated merge
Diffstat (limited to 'indra/newview/lltoastpanel.cpp')
-rw-r--r-- | indra/newview/lltoastpanel.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/lltoastpanel.cpp b/indra/newview/lltoastpanel.cpp index d142a0665b..71598b3169 100644 --- a/indra/newview/lltoastpanel.cpp +++ b/indra/newview/lltoastpanel.cpp @@ -33,6 +33,7 @@ #include "llviewerprecompiledheaders.h" #include "llpanelgenerictip.h" +#include "llpanelonlinestatus.h" #include "llnotifications.h" #include "lltoastpanel.h" @@ -97,9 +98,19 @@ LLToastPanel* LLToastPanel::buidPanelFromNotification( { LLToastPanel* res = NULL; - if (notification->getName() == "SystemMessageTip") + //process tip toast panels + if ("notifytip" == notification->getType()) { - res = new LLPanelGenericTip(notification); + // if it is online/offline notification + if ("FriendOffline" == notification->getName() || "FriendOnline" == notification->getName()) + { + res = new LLPanelOnlineStatus(notification); + } + // in all other case we use generic tip panel + else + { + res = new LLPanelGenericTip(notification); + } } /* else if(...) |