diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-03-02 20:31:21 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-03-03 05:33:22 +0200 |
| commit | ca3a23b42641dceaaaea36faef6231c03a563aa3 (patch) | |
| tree | 0b84ac0db040b54bb15e089c206739ed5883c251 /indra/newview/lllandmarkactions.cpp | |
| parent | 44e21aa718211cf34a59a036f2831c2e80fef8e1 (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.cpp | 5 |
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; |
