summaryrefslogtreecommitdiff
path: root/indra/newview/lllandmarkactions.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-03-02 20:31:21 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-03-03 05:33:22 +0200
commitca3a23b42641dceaaaea36faef6231c03a563aa3 (patch)
tree0b84ac0db040b54bb15e089c206739ed5883c251 /indra/newview/lllandmarkactions.cpp
parent44e21aa718211cf34a59a036f2831c2e80fef8e1 (diff)
#3612 Fix viewer not getting 'nonexistent region' responses
which are needed to process 'copy slurl'
Diffstat (limited to 'indra/newview/lllandmarkactions.cpp')
-rw-r--r--indra/newview/lllandmarkactions.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lllandmarkactions.cpp b/indra/newview/lllandmarkactions.cpp
index b9d1c7ba18..9b90e41549 100644
--- a/indra/newview/lllandmarkactions.cpp
+++ b/indra/newview/lllandmarkactions.cpp
@@ -473,6 +473,11 @@ void LLLandmarkActions::copySLURLtoClipboard(const LLUUID& landmarkInventoryItem
void copy_slurl_to_clipboard_callback(const std::string& slurl)
{
+ if (slurl.empty())
+ {
+ LLNotificationsUtil::add("LandmarkLocationUnknown");
+ return;
+ }
gViewerWindow->getWindow()->copyTextToClipboard(utf8str_to_wstring(slurl));
LLSD args;
args["SLURL"] = slurl;