From 8da7889400a9dfeeefc5b9d7f9fb72aa093ae029 Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Wed, 30 Dec 2009 17:37:45 +0200 Subject: fixed bug EXT-3722 New IM & Notification buttons can be clicked on, even when there's nothing to see Note: It was decided to handle an enabling of buttons from syswellwindow according to his empty state --HG-- branch : product-engine --- indra/newview/llchiclet.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'indra/newview/llchiclet.cpp') diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index c01202bb82..821b63ff04 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -225,6 +225,10 @@ void LLSysWellChiclet::setNewMessagesState(bool new_messages) mIsNewMessagesState = new_messages; } +void LLSysWellChiclet::updateWidget(bool is_window_empty) +{ + mButton->setEnabled(!is_window_empty); +} // virtual BOOL LLSysWellChiclet::handleRightMouseDown(S32 x, S32 y, MASK mask) { @@ -374,6 +378,13 @@ void LLNotificationChiclet::createMenu() LLViewerMenuHolderGL::child_registry_t::instance()); } +/*virtual*/ +void LLNotificationChiclet::setCounter(S32 counter) +{ + LLSysWellChiclet::setCounter(counter); + updateWidget(getCounter() == 0); + +} ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3