summaryrefslogtreecommitdiff
path: root/indra/newview/llfavoritesbar.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-12-05 16:29:04 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-12-05 17:30:08 +0200
commit9f82b907f2f7d57580e17cef89bbd08be90f94fb (patch)
tree990c426e8f61c19f0af52d31f5d21f62a623b198 /indra/newview/llfavoritesbar.cpp
parentc4ec3d866082d588de671e833413474d7ab19524 (diff)
#3612 "Copy SLURL" from Favorites bar not working
If region isn't online, can't get region position and form slurl
Diffstat (limited to 'indra/newview/llfavoritesbar.cpp')
-rw-r--r--indra/newview/llfavoritesbar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfavoritesbar.cpp b/indra/newview/llfavoritesbar.cpp
index 377710c170..acffc856bc 100644
--- a/indra/newview/llfavoritesbar.cpp
+++ b/indra/newview/llfavoritesbar.cpp
@@ -1395,6 +1395,13 @@ bool LLFavoritesBarCtrl::enableSelected(const LLSD& userdata)
{
return !LLAgentPicksInfo::getInstance()->isPickLimitReached();
}
+ else if (param == "copy_slurl"
+ || param == "show_on_map")
+ {
+ LLVector3d posGlobal;
+ LLLandmarkActions::getLandmarkGlobalPos(mSelectedItemID, posGlobal);
+ return !posGlobal.isExactlyZero();
+ }
return false;
}