diff options
author | angela <angela@lindenlab.com> | 2010-02-23 23:57:50 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2010-02-23 23:57:50 +0800 |
commit | 01ad8456a2566d258124677e0c7ce5eaa5003569 (patch) | |
tree | 381f50d83c727a46044733a776a252427c91627e /indra/newview/llavataractions.cpp | |
parent | e98d6a910a39671225f1af627570aee58517ea7f (diff) | |
parent | 43a9699de16c85d1c1a599fbe14512fbb6cbada1 (diff) |
merge
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r-- | indra/newview/llavataractions.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index 1d75374930..e6666c7f83 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -50,6 +50,7 @@ #include "llfloatergroups.h" #include "llfloaterreg.h" #include "llfloaterpay.h" +#include "llfloaterworldmap.h" #include "llinventorymodel.h" // for gInventory.findCategoryUUIDForType #include "llimview.h" // for gIMMgr #include "llmutelist.h" @@ -317,6 +318,20 @@ void LLAvatarActions::showProfile(const LLUUID& id) } // static +void LLAvatarActions::showOnMap(const LLUUID& id) +{ + std::string name; + if (!gCacheName->getFullName(id, name)) + { + gCacheName->get(id, FALSE, boost::bind(&LLAvatarActions::showOnMap, id)); + return; + } + + gFloaterWorldMap->trackAvatar(id, name); + LLFloaterReg::showInstance("world_map"); +} + +// static void LLAvatarActions::pay(const LLUUID& id) { LLNotification::Params params("BusyModePay"); |