From 8e0128c493bce16555b3a9132bd71b670c322d63 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Fri, 11 Sep 2009 22:14:57 -0400
Subject: [PATCH] QAR-1619: Reconcile LLFloaterTOS::onCancel() with viewer-2
 version. The viewer-2 onCancel() pops up a "MustAgreeToLogIn" notification.
 Make ours do the same.

---
 indra/newview/llfloatertos.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/indra/newview/llfloatertos.cpp b/indra/newview/llfloatertos.cpp
index d8aea2770fb..8d2d48f1af8 100644
--- a/indra/newview/llfloatertos.cpp
+++ b/indra/newview/llfloatertos.cpp
@@ -48,6 +48,7 @@
 #include "lluictrlfactory.h"
 #include "llvfile.h"
 #include "message.h"
+#include "llstartup.h"              // login_alert_done
 
 
 LLFloaterTOS::LLFloaterTOS(const LLSD& data)
@@ -206,6 +207,7 @@ void LLFloaterTOS::onCancel( void* userdata )
 {
 	LLFloaterTOS* self = (LLFloaterTOS*) userdata;
 	llinfos << "User disagrees with TOS." << llendl;
+	LLNotifications::instance().add("MustAgreeToLogIn", LLSD(), LLSD(), login_alert_done);
 
 	if(self->mReplyPumpName != "")
 	{
-- 
GitLab