MAINT-8125 "New" tag remains visible when searching items in Received Items panel

Mnikolenko Productengine 2018-01-03 18:45:02 +02:00
parent 6ea525f6af
commit 7de6475a0a
3 changed files with 7 additions and 9 deletions

View File

@ -224,7 +224,7 @@ void LLBadge::draw()
{
LLView* owner_view = mOwner.get();
if (owner_view)
if (owner_view && owner_view->isInVisibleChain())
{
//
// Calculate badge size based on label text

View File

@ -146,18 +146,16 @@ void LLInboxFolderViewFolder::draw()
LLFolderViewFolder::draw();
}
void LLInboxFolderViewFolder::selectItem()
BOOL LLInboxFolderViewFolder::handleMouseDown( S32 x, S32 y, MASK mask )
{
deFreshify();
LLFolderViewFolder::selectItem();
return LLFolderViewFolder::handleMouseDown(x, y, mask);
}
void LLInboxFolderViewFolder::toggleOpen()
BOOL LLInboxFolderViewFolder::handleDoubleClick( S32 x, S32 y, MASK mask )
{
deFreshify();
LLFolderViewFolder::toggleOpen();
return LLFolderViewFolder::handleDoubleClick(x, y, mask);
}
void LLInboxFolderViewFolder::computeFreshness()

View File

@ -69,8 +69,8 @@ public:
void addItem(LLFolderViewItem* item);
void draw();
void selectItem();
void toggleOpen();
BOOL handleMouseDown(S32 x, S32 y, MASK mask);
BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
void computeFreshness();
void deFreshify();