summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-06-06 21:43:23 +0200
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-06-07 10:58:24 +0200
commit45a54ba544b12ce4b27c52dd014c9b14bcb0d2c7 (patch)
treec5f1fba5fed8ea990d113f3b3e94faa6c926b77b /indra/newview
parentbbd0a09fbaaa354f522bf77241b9039288f10479 (diff)
SL-18328 Fix opening the right profile on click Callingcard embedded to a Notecard
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexteditor.cpp6
1 files changed, 5 insertions, 1 deletions
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<LLInventoryItem> 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());
}