diff options
Diffstat (limited to 'linden/indra/newview/llfloaterinspect.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterinspect.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterinspect.cpp b/linden/indra/newview/llfloaterinspect.cpp index e1d3c4a..2367b48 100644 --- a/linden/indra/newview/llfloaterinspect.cpp +++ b/linden/indra/newview/llfloaterinspect.cpp | |||
@@ -42,6 +42,10 @@ | |||
42 | #include "llviewerobject.h" | 42 | #include "llviewerobject.h" |
43 | #include "lluictrlfactory.h" | 43 | #include "lluictrlfactory.h" |
44 | 44 | ||
45 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
46 | #include "rlvhandler.h" | ||
47 | // [/RLVa:KB] | ||
48 | |||
45 | LLFloaterInspect* LLFloaterInspect::sInstance = NULL; | 49 | LLFloaterInspect* LLFloaterInspect::sInstance = NULL; |
46 | 50 | ||
47 | LLFloaterInspect::LLFloaterInspect(void) : | 51 | LLFloaterInspect::LLFloaterInspect(void) : |
@@ -145,7 +149,13 @@ void LLFloaterInspect::onClickOwnerProfile(void* ctrl) | |||
145 | if(node) | 149 | if(node) |
146 | { | 150 | { |
147 | const LLUUID& owner_id = node->mPermissions->getOwner(); | 151 | const LLUUID& owner_id = node->mPermissions->getOwner(); |
148 | LLFloaterAvatarInfo::showFromDirectory(owner_id); | 152 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) |
153 | if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
154 | { | ||
155 | LLFloaterAvatarInfo::showFromDirectory(owner_id); | ||
156 | } | ||
157 | // [/RLVa:KB] | ||
158 | // LLFloaterAvatarInfo::showFromDirectory(owner_id); | ||
149 | } | 159 | } |
150 | } | 160 | } |
151 | } | 161 | } |
@@ -163,7 +173,10 @@ void LLFloaterInspect::onSelectObject(LLUICtrl* ctrl, void* user_data) | |||
163 | { | 173 | { |
164 | if(LLFloaterInspect::getSelectedUUID() != LLUUID::null) | 174 | if(LLFloaterInspect::getSelectedUUID() != LLUUID::null) |
165 | { | 175 | { |
166 | sInstance->childSetEnabled("button owner", true); | 176 | //sInstance->childSetEnabled("button owner", true); |
177 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-1.0.0e | ||
178 | sInstance->childSetEnabled("button owner", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)); | ||
179 | // [/RLVa:KB] | ||
167 | sInstance->childSetEnabled("button creator", true); | 180 | sInstance->childSetEnabled("button creator", true); |
168 | } | 181 | } |
169 | } | 182 | } |
@@ -223,6 +236,13 @@ void LLFloaterInspect::refresh() | |||
223 | LLStringUtil::copy(time, ctime(×tamp), MAX_STRING); | 236 | LLStringUtil::copy(time, ctime(×tamp), MAX_STRING); |
224 | time[24] = '\0'; | 237 | time[24] = '\0'; |
225 | gCacheName->getFullName(obj->mPermissions->getOwner(), owner_name); | 238 | gCacheName->getFullName(obj->mPermissions->getOwner(), owner_name); |
239 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
240 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
241 | { | ||
242 | // TODO-RLVa: shouldn't filter if this is a group-owned prim (will show "(nobody)") | ||
243 | owner_name = gRlvHandler.getAnonym(owner_name); | ||
244 | } | ||
245 | // [/RLVa:KB] | ||
226 | gCacheName->getFullName(obj->mPermissions->getCreator(), creator_name); | 246 | gCacheName->getFullName(obj->mPermissions->getCreator(), creator_name); |
227 | row["id"] = obj->getObject()->getID(); | 247 | row["id"] = obj->getObject()->getID(); |
228 | row["columns"][0]["column"] = "object_name"; | 248 | row["columns"][0]["column"] = "object_name"; |