diff options
| author | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-06-25 13:44:36 -0700 |
|---|---|---|
| committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-06-25 13:44:36 -0700 |
| commit | 7b79b455d0b3b60669bbe8978732fe7db62d678b (patch) | |
| tree | a5bb7b00a63572ae2162a313c7b6f3ca36d8f2d5 /indra/newview/llfacebookconnect.cpp | |
| parent | d63dd9d442a2c30b26163cdaf475ed31070aa92b (diff) | |
| parent | fa48ae87415d7e5d5bf7549af30832a14d6a7de2 (diff) | |
merge
Diffstat (limited to 'indra/newview/llfacebookconnect.cpp')
| -rw-r--r-- | indra/newview/llfacebookconnect.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llfacebookconnect.cpp b/indra/newview/llfacebookconnect.cpp index 64fc81cc93..fe4e7fe69e 100644 --- a/indra/newview/llfacebookconnect.cpp +++ b/indra/newview/llfacebookconnect.cpp @@ -36,9 +36,10 @@ #include "llnotificationsutil.h" #include "llurlaction.h" #include "llimagepng.h" +#include "lltrans.h" -// Local function +// Local functions void prompt_user_for_error(U32 status, const std::string& reason, const std::string& code, const std::string& description) { // Note: 302 (redirect) is *not* an error that warrants prompting the user @@ -55,6 +56,13 @@ void prompt_user_for_error(U32 status, const std::string& reason, const std::str } } +void toast_user_for_success() +{ + LLSD args; + args["MESSAGE"] = LLTrans::getString("facebook_post_success"); + LLNotificationsUtil::add("SystemMessage", args); +} + /////////////////////////////////////////////////////////////////////////////// // class LLFacebookConnectHandler : public LLCommandHandler @@ -133,6 +141,7 @@ public: { if (isGoodStatus(status)) { + toast_user_for_success(); LL_DEBUGS("FacebookConnect") << "Post successful. content: " << content << LL_ENDL; } else |
