From 45a54ba544b12ce4b27c52dd014c9b14bcb0d2c7 Mon Sep 17 00:00:00 2001 From: Alexander Gavriliuk Date: Tue, 6 Jun 2023 21:43:23 +0200 Subject: SL-18328 Fix opening the right profile on click Callingcard embedded to a Notecard --- indra/newview/llviewertexteditor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewertexteditor.cpp b/indra/newview/llviewertexteditor.cpp index 7abb42dd8a..d2701f0aff 100644 --- a/indra/newview/llviewertexteditor.cpp +++ b/indra/newview/llviewertexteditor.cpp @@ -1194,7 +1194,11 @@ void LLViewerTextEditor::openEmbeddedLandmark( LLPointer item_p void LLViewerTextEditor::openEmbeddedCallingcard( LLInventoryItem* item, llwchar wc ) { - if(item && !item->getCreatorUUID().isNull()) + if (item && !item->getDescription().empty()) + { + LLAvatarActions::showProfile(LLUUID(item->getDescription())); + } + else if (item && !item->getCreatorUUID().isNull()) { LLAvatarActions::showProfile(item->getCreatorUUID()); } -- cgit v1.2.3