diff options
| author | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-11-03 14:52:05 -0500 |
|---|---|---|
| committer | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-11-03 14:52:05 -0500 |
| commit | e87975284e2b50c81d95bbb9672678ae262288be (patch) | |
| tree | c081cf1087ac2aa055d0e69737f936138578a2c4 /indra/llui/llurlaction.cpp | |
| parent | 0dd9871012f50d6201217a79b65bedd28368efae (diff) | |
| parent | 3f8c129a1f4caefcc25c895a6612aaaaa0c6aaa3 (diff) | |
update from viewer2 and merge into avp
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/llui/llurlaction.cpp')
| -rw-r--r-- | indra/llui/llurlaction.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp index f3401f91f7..679db5e39b 100644 --- a/indra/llui/llurlaction.cpp +++ b/indra/llui/llurlaction.cpp @@ -121,6 +121,18 @@ void LLUrlAction::teleportToLocation(std::string url) } } +void LLUrlAction::showLocationOnMap(std::string url) +{ + LLUrlMatch match; + if (LLUrlRegistry::instance().findUrl(url, match)) + { + if (! match.getLocation().empty()) + { + executeSLURL("secondlife:///app/worldmap/" + match.getLocation()); + } + } +} + void LLUrlAction::copyURLToClipboard(std::string url) { LLView::getWindow()->copyTextToClipboard(utf8str_to_wstring(url)); |
