diff options
Diffstat (limited to 'linden/indra/newview/llpanelgroupnotices.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgroupnotices.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelgroupnotices.cpp b/linden/indra/newview/llpanelgroupnotices.cpp index 2a7cdf5..373f3f2 100644 --- a/linden/indra/newview/llpanelgroupnotices.cpp +++ b/linden/indra/newview/llpanelgroupnotices.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2006-2007, Linden Research, Inc. | 5 | * Copyright (c) 2006-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -323,9 +324,16 @@ void LLPanelGroupNotices::setItem(LLPointer<LLInventoryItem> inv_item) | |||
323 | { | 324 | { |
324 | mInventoryItem = inv_item; | 325 | mInventoryItem = inv_item; |
325 | 326 | ||
327 | BOOL item_is_multi = FALSE; | ||
328 | if ( inv_item->getFlags() & LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS ) | ||
329 | { | ||
330 | item_is_multi = TRUE; | ||
331 | }; | ||
332 | |||
326 | LLViewerImage* item_icon = get_item_icon(inv_item->getType(), | 333 | LLViewerImage* item_icon = get_item_icon(inv_item->getType(), |
327 | inv_item->getInventoryType(), | 334 | inv_item->getInventoryType(), |
328 | inv_item->getFlags()); | 335 | inv_item->getFlags(), |
336 | item_is_multi ); | ||
329 | 337 | ||
330 | mCreateInventoryIcon->setImage(item_icon->getID()); | 338 | mCreateInventoryIcon->setImage(item_icon->getID()); |
331 | mCreateInventoryIcon->setVisible(TRUE); | 339 | mCreateInventoryIcon->setVisible(TRUE); |
@@ -482,7 +490,7 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg) | |||
482 | { | 490 | { |
483 | LLUUID icon_id = get_item_icon_uuid( | 491 | LLUUID icon_id = get_item_icon_uuid( |
484 | (LLAssetType::EType)asset_type, | 492 | (LLAssetType::EType)asset_type, |
485 | LLInventoryType::IT_NONE,FALSE); | 493 | LLInventoryType::IT_NONE,FALSE, FALSE); |
486 | row["columns"][0]["type"] = "icon"; | 494 | row["columns"][0]["type"] = "icon"; |
487 | row["columns"][0]["value"] = icon_id; | 495 | row["columns"][0]["value"] = icon_id; |
488 | } | 496 | } |
@@ -498,7 +506,7 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg) | |||
498 | row["columns"][3]["column"] = "date"; | 506 | row["columns"][3]["column"] = "date"; |
499 | row["columns"][3]["value"] = buffer; | 507 | row["columns"][3]["value"] = buffer; |
500 | 508 | ||
501 | snprintf(buffer, 30, "%u", timestamp); /*Flawfinder: ignore*/ | 509 | snprintf(buffer, 30, "%u", timestamp); /* Flawfinder: ignore */ |
502 | row["columns"][4]["column"] = "sort"; | 510 | row["columns"][4]["column"] = "sort"; |
503 | row["columns"][4]["value"] = buffer; | 511 | row["columns"][4]["value"] = buffer; |
504 | 512 | ||
@@ -550,7 +558,7 @@ void LLPanelGroupNotices::showNotice(const char* subject, | |||
550 | 558 | ||
551 | LLViewerImage* item_icon = get_item_icon(mInventoryOffer->mType, | 559 | LLViewerImage* item_icon = get_item_icon(mInventoryOffer->mType, |
552 | LLInventoryType::IT_TEXTURE, | 560 | LLInventoryType::IT_TEXTURE, |
553 | 0); | 561 | 0, FALSE); |
554 | 562 | ||
555 | mViewInventoryIcon->setImage(item_icon->getID()); | 563 | mViewInventoryIcon->setImage(item_icon->getID()); |
556 | mViewInventoryIcon->setVisible(TRUE); | 564 | mViewInventoryIcon->setVisible(TRUE); |