summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-12-16 09:34:19 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-12-16 09:34:19 -0800
commit1774489ef8c224359e39d6281497e5128b043d24 (patch)
treece5ed7ab9092d2f6aa8cc9cb4080f22c71827a8f /indra/newview/llappviewer.cpp
parent6f996302ef5f8277dbfab9a75a536b554d7fa4e9 (diff)
Vary install failed message depending on whether it was required or not.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 5cf7087c71..c9800c9830 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -2475,6 +2475,11 @@ namespace {
LLNotificationsUtil::add(notification_name, substitutions, LLSD(), apply_callback);
}
+
+ void install_error_callback(LLSD const & notification, LLSD const & response)
+ {
+ LLAppViewer::instance()->forceQuit();
+ }
bool notify_update(LLSD const & evt)
{
@@ -2485,7 +2490,11 @@ namespace {
on_update_downloaded(evt);
break;
case LLUpdaterService::INSTALL_ERROR:
- LLNotificationsUtil::add("FailedUpdateInstall");
+ if(evt["required"].asBoolean()) {
+ LLNotificationsUtil::add("FailedRequiredUpdateInstall", LLSD(), LLSD(), &install_error_callback);
+ } else {
+ LLNotificationsUtil::add("FailedUpdateInstall");
+ }
break;
default:
break;