Skip to content
Snippets Groups Projects
Commit e377182c authored by Oz Linden's avatar Oz Linden
Browse files

merge changes for storm-1799

parents 04452c96 1fc53d33
No related branches found
No related tags found
No related merge requests found
...@@ -608,6 +608,7 @@ Jonathan Yap ...@@ -608,6 +608,7 @@ Jonathan Yap
STORM-1733 STORM-1733
STORM-1790 STORM-1790
STORM-1788 STORM-1788
STORM-1799
STORM-1796 STORM-1796
Kadah Coba Kadah Coba
STORM-1060 STORM-1060
......
...@@ -60,12 +60,10 @@ class LLInspectRemoteObject : public LLInspect ...@@ -60,12 +60,10 @@ class LLInspectRemoteObject : public LLInspect
private: private:
void update(); void update();
void onNameCache(const LLUUID& id, const std::string& name, bool is_group);
private: private:
LLUUID mObjectID; LLUUID mObjectID;
LLUUID mOwnerID; LLUUID mOwnerID;
std::string mOwnerLegacyName;
std::string mSLurl; std::string mSLurl;
std::string mName; std::string mName;
bool mGroupOwned; bool mGroupOwned;
...@@ -75,7 +73,6 @@ LLInspectRemoteObject::LLInspectRemoteObject(const LLSD& sd) : ...@@ -75,7 +73,6 @@ LLInspectRemoteObject::LLInspectRemoteObject(const LLSD& sd) :
LLInspect(LLSD()), LLInspect(LLSD()),
mObjectID(NULL), mObjectID(NULL),
mOwnerID(NULL), mOwnerID(NULL),
mOwnerLegacyName(),
mSLurl(""), mSLurl(""),
mName(""), mName(""),
mGroupOwned(false) mGroupOwned(false)
...@@ -111,14 +108,6 @@ void LLInspectRemoteObject::onOpen(const LLSD& data) ...@@ -111,14 +108,6 @@ void LLInspectRemoteObject::onOpen(const LLSD& data)
mGroupOwned = data["group_owned"].asBoolean(); mGroupOwned = data["group_owned"].asBoolean();
mSLurl = data["slurl"].asString(); 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 the inspector with the current object state
update(); update();
...@@ -144,8 +133,7 @@ void LLInspectRemoteObject::onClickMap() ...@@ -144,8 +133,7 @@ void LLInspectRemoteObject::onClickMap()
void LLInspectRemoteObject::onClickBlock() void LLInspectRemoteObject::onClickBlock()
{ {
LLMute::EType mute_type = mGroupOwned ? LLMute::GROUP : LLMute::AGENT; LLMute mute(mObjectID, mName, LLMute::OBJECT);
LLMute mute(mOwnerID, mOwnerLegacyName, mute_type);
LLMuteList::getInstance()->add(mute); LLMuteList::getInstance()->add(mute);
LLPanelBlockedList::showPanelAndSelect(mute.mID); LLPanelBlockedList::showPanelAndSelect(mute.mID);
closeFloater(); closeFloater();
...@@ -156,12 +144,6 @@ void LLInspectRemoteObject::onClickClose() ...@@ -156,12 +144,6 @@ void LLInspectRemoteObject::onClickClose()
closeFloater(); closeFloater();
} }
void LLInspectRemoteObject::onNameCache(const LLUUID& id, const std::string& name, bool is_group)
{
mOwnerLegacyName = name;
update();
}
void LLInspectRemoteObject::update() void LLInspectRemoteObject::update()
{ {
// show the object name as the inspector's title // show the object name as the inspector's title
...@@ -198,8 +180,8 @@ void LLInspectRemoteObject::update() ...@@ -198,8 +180,8 @@ void LLInspectRemoteObject::update()
// disable the Map button if we don't have a SLurl // disable the Map button if we don't have a SLurl
getChild<LLUICtrl>("map_btn")->setEnabled(! mSLurl.empty()); getChild<LLUICtrl>("map_btn")->setEnabled(! mSLurl.empty());
// disable the Block button if we don't have the owner ID // disable the Block button if we don't have the object ID (will this ever happen?)
getChild<LLUICtrl>("block_btn")->setEnabled(! mOwnerID.isNull()); getChild<LLUICtrl>("block_btn")->setEnabled(! mObjectID.isNull());
} }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment