From ca3a23b42641dceaaaea36faef6231c03a563aa3 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:31:21 +0200 Subject: #3612 Fix viewer not getting 'nonexistent region' responses which are needed to process 'copy slurl' --- indra/newview/lllandmarkactions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview/lllandmarkactions.cpp') 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; -- cgit v1.3