From c4d684d462fe555345a1c311a1e904f7baee56c6 Mon Sep 17 00:00:00 2001
From: Mike Antipov <mantipov@productengine.com>
Date: Mon, 21 Dec 2009 15:14:56 +0200
Subject: [PATCH] Fixed major bug EXT-3572 (Notification Well button becomes
 "lit" after resolving any notification)  -- set "new messages" state only if
 count of unread messages is increased.

--HG--
branch : product-engine
---
 indra/newview/llchiclet.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp
index 957d272f401..17ef1f41a42 100644
--- a/indra/newview/llchiclet.cpp
+++ b/indra/newview/llchiclet.cpp
@@ -187,9 +187,9 @@ void LLSysWellChiclet::setCounter(S32 counter)
 
 	mButton->setLabel(s_count);
 
-	setNewMessagesState(counter > 0);
+	setNewMessagesState(counter > mCounter);
 
-	// we have to flash to 'Lit' state each time new unread message is comming.
+	// we have to flash to 'Lit' state each time new unread message is coming.
 	if (counter > mCounter)
 	{
 		mFlashToLitTimer->flash();
-- 
GitLab