summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmarketplaceinboxinventory.cpp
diff options
context:
space:
mode:
authorLeslie Linden <none@none>2011-07-11 17:45:29 -0700
committerLeslie Linden <none@none>2011-07-11 17:45:29 -0700
commit18e8d57b210fd5a7ca1bb8fc114a3e4faf8bf537 (patch)
tree114e914298bd5d06cb5082a81731d9f45580428e /indra/newview/llpanelmarketplaceinboxinventory.cpp
parent85ddc48e089b8c0b64ca8c224d0cbf1e1509a9c3 (diff)
EXP-995 FIX -- New icon scrolls into Received Items panel heading
EXP-903 FIX -- Newness/Freshness number does not decrease as items are opened in Inbox * Brought back freshness with the freshness * New badge and label color from Gibson * Inventory Panel now allows display of badges with proper clipping Reviewed by Richard.
Diffstat (limited to 'indra/newview/llpanelmarketplaceinboxinventory.cpp')
-rw-r--r--indra/newview/llpanelmarketplaceinboxinventory.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/indra/newview/llpanelmarketplaceinboxinventory.cpp b/indra/newview/llpanelmarketplaceinboxinventory.cpp
index 5dff73ee6a..8542ea2ae4 100644
--- a/indra/newview/llpanelmarketplaceinboxinventory.cpp
+++ b/indra/newview/llpanelmarketplaceinboxinventory.cpp
@@ -141,7 +141,7 @@ LLFolderViewFolder * LLInboxInventoryPanel::createFolderViewFolder(LLInvFVBridge
LLInboxFolderViewFolder::LLInboxFolderViewFolder(const Params& p)
: LLFolderViewFolder(p)
, LLBadgeOwner(getHandle())
- , mFresh(false)
+ , mFresh(true)
{
initBadgeParams(p.new_badge());
}
@@ -151,6 +151,19 @@ LLInboxFolderViewFolder::~LLInboxFolderViewFolder()
}
// virtual
+time_t LLInboxFolderViewFolder::getCreationDate() const
+{
+ time_t ret_val = LLFolderViewFolder::getCreationDate();
+
+ if (!mCreationDate)
+ {
+ updateFlag();
+ }
+
+ return ret_val;
+}
+
+// virtual
void LLInboxFolderViewFolder::draw()
{
if (!badgeHasParent())
@@ -166,10 +179,7 @@ void LLInboxFolderViewFolder::draw()
void LLInboxFolderViewFolder::updateFlag() const
{
LLDate saved_freshness_date = LLDate(gSavedSettings.getString("InboxFreshnessDate"));
- if (getCreationDate() > saved_freshness_date.secondsSinceEpoch())
- {
- mFresh = true;
- }
+ mFresh = (mCreationDate > saved_freshness_date.secondsSinceEpoch());
}
void LLInboxFolderViewFolder::selectItem()