From 9479c872746074d27d245b2af2d17a760a927915 Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Tue, 21 Sep 2010 13:57:58 -0700
Subject: FIX crash when clicking on MOTD

---
 indra/newview/llprogressview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llprogressview.cpp b/indra/newview/llprogressview.cpp
index c6bd600403..e9504cbba0 100644
--- a/indra/newview/llprogressview.cpp
+++ b/indra/newview/llprogressview.cpp
@@ -297,7 +297,7 @@ bool LLProgressView::onAlertModal(const LLSD& notify)
 {
 	// if the progress view is visible, it will obscure the notification window
 	// in this case, we want to auto-accept WebLaunchExternalTarget notifications
-	if (isInVisibleChain())
+	if (isInVisibleChain() && notify["sigtype"].asString() == "add")
 	{
 		LLNotificationPtr notifyp = LLNotifications::instance().find(notify["id"].asUUID());
 		if (notifyp && notifyp->getName() == "WebLaunchExternalTarget")
-- 
cgit v1.2.3