summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2012-12-05 16:08:17 -0800
committerMerov Linden <merov@lindenlab.com>2012-12-05 16:08:17 -0800
commita4a2cc62c3411f0391b90d9720a13b49b0e123ef (patch)
tree858809029190c71fed41d9d6bef49032d45b413d /indra/newview/llinventorybridge.cpp
parent55bd994b3968a2852c846ebe3bf924a964daf714 (diff)
CHUI-509 : Fixed : Add params to inventory widgets to control font colors (required for library items and links).
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 73631f4ba8..cf8253ca4d 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -255,6 +255,11 @@ BOOL LLInvFVBridge::isLink() const
return mIsLink;
}
+BOOL LLInvFVBridge::isLibraryItem() const
+{
+ return gInventory.isObjectDescendentOf(getUUID(),gInventory.getLibraryRootFolderID());
+}
+
/*virtual*/
/**
* @brief Adds this item into clipboard storage