diff options
author | Denis Serdjuk <dserduk@productengine.com> | 2009-12-30 17:37:45 +0200 |
---|---|---|
committer | Denis Serdjuk <dserduk@productengine.com> | 2009-12-30 17:37:45 +0200 |
commit | 8da7889400a9dfeeefc5b9d7f9fb72aa093ae029 (patch) | |
tree | 40ab649f3907ba59f7e765800b079f991ffc4cab /indra/newview/llchiclet.cpp | |
parent | 5eb4d0b219ed0dd9928ecbcfbffe19fbaa318f22 (diff) |
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
Diffstat (limited to 'indra/newview/llchiclet.cpp')
-rw-r--r-- | indra/newview/llchiclet.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); + +} ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// |