diff -r 4982ab91ef6a doc/contributions.txt --- a/doc/contributions.txt Mon Jan 09 08:41:36 2012 -0500 +++ b/doc/contributions.txt Mon Jan 16 12:09:38 2012 -0500 @@ -607,6 +607,7 @@ STORM-1737 STORM-1733 STORM-1790 + STORM-1799 Kadah Coba STORM-1060 Jondan Lundquist diff -r 4982ab91ef6a indra/newview/llinspectremoteobject.cpp --- a/indra/newview/llinspectremoteobject.cpp Mon Jan 09 08:41:36 2012 -0500 +++ b/indra/newview/llinspectremoteobject.cpp Mon Jan 16 12:09:38 2012 -0500 @@ -60,12 +60,10 @@ private: void update(); - void onNameCache(const LLUUID& id, const std::string& name, bool is_group); private: LLUUID mObjectID; LLUUID mOwnerID; - std::string mOwnerLegacyName; std::string mSLurl; std::string mName; bool mGroupOwned; @@ -75,7 +73,6 @@ LLInspect(LLSD()), mObjectID(NULL), mOwnerID(NULL), - mOwnerLegacyName(), mSLurl(""), mName(""), mGroupOwned(false) @@ -111,14 +108,6 @@ mGroupOwned = data["group_owned"].asBoolean(); mSLurl = data["slurl"].asString(); - // work out the owner's name - mOwnerLegacyName = ""; - if (gCacheName) - { - gCacheName->get(mOwnerID, mGroupOwned, // muting - boost::bind(&LLInspectRemoteObject::onNameCache, this, _1, _2, _3)); - } - // update the inspector with the current object state update(); @@ -144,8 +133,7 @@ void LLInspectRemoteObject::onClickBlock() { - LLMute::EType mute_type = mGroupOwned ? LLMute::GROUP : LLMute::AGENT; - LLMute mute(mOwnerID, mOwnerLegacyName, mute_type); + LLMute mute(mObjectID, mName, LLMute::OBJECT); LLMuteList::getInstance()->add(mute); LLPanelBlockedList::showPanelAndSelect(mute.mID); closeFloater(); @@ -156,12 +144,6 @@ closeFloater(); } -void LLInspectRemoteObject::onNameCache(const LLUUID& id, const std::string& name, bool is_group) -{ - mOwnerLegacyName = name; - update(); -} - void LLInspectRemoteObject::update() { // show the object name as the inspector's title @@ -198,8 +180,8 @@ // disable the Map button if we don't have a SLurl getChild("map_btn")->setEnabled(! mSLurl.empty()); - // disable the Block button if we don't have the owner ID - getChild("block_btn")->setEnabled(! mOwnerID.isNull()); + // disable the Block button if we don't have the object ID (will this ever happen?) + getChild("block_btn")->setEnabled(! mObjectID.isNull()); } //////////////////////////////////////////////////////////////////////////////