summaryrefslogtreecommitdiff
path: root/indra/newview/lllocalbitmaps.cpp
diff options
context:
space:
mode:
authorVaalith Jinn <none@none>2012-04-09 17:44:27 +0300
committerVaalith Jinn <none@none>2012-04-09 17:44:27 +0300
commit4ff8067aa8f5117fa83e1a971b5bbc0c8fc033b2 (patch)
tree30ca748d31567278fd91b43deceefe809ce60d90 /indra/newview/lllocalbitmaps.cpp
parent0539de909951e94c9c22aac9ac94835793c7bf49 (diff)
STORM-64: Added toasts to display critical errors during update cycle.
Diffstat (limited to 'indra/newview/lllocalbitmaps.cpp')
-rw-r--r--indra/newview/lllocalbitmaps.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index b96fc06226..10c3b20f63 100644
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -59,6 +59,7 @@
#include "llagentwearables.h"
#include "lltexlayerparams.h"
#include "llvovolume.h"
+#include "llnotificationsutil.h"
/*=======================================*/
/* Formal declarations, constants, etc. */
@@ -234,6 +235,11 @@ bool LLLocalBitmap::updateSelf(bool first_update)
<< "Filename: " << mFilename << "\n"
<< "Disabling further update attempts for this file." << llendl;
+ LLSD notif_args;
+ notif_args["FNAME"] = mFilename;
+ notif_args["NRETRIES"] = LL_LOCAL_UPDATE_RETRIES;
+ LLNotificationsUtil::add("LocalBitmapsUpdateFailedFinal", notif_args);
+
mLinkStatus = LS_BROKEN;
}
}
@@ -247,6 +253,10 @@ bool LLLocalBitmap::updateSelf(bool first_update)
<< "Filename: " << mFilename << "\n"
<< "Disabling further update attempts for this file." << llendl;
+ LLSD notif_args;
+ notif_args["FNAME"] = mFilename;
+ LLNotificationsUtil::add("LocalBitmapsUpdateFileNotFound", notif_args);
+
mLinkStatus = LS_BROKEN;
}
}