summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewnotecard.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-09-26 11:21:02 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-09-26 11:21:02 +0300
commita65c18c1d370b34cb41e8130bca2e5e068bac553 (patch)
treeaf6dabf5089baa1f03867fee15da608c87042e11 /indra/newview/llpreviewnotecard.cpp
parentf4e303c067bbf4fdad2fe8f8c02878bee3b74cb0 (diff)
MAINT-7824 FIXED Items inside other notecards with full perms refuse to copy into inventory when being looked at inside an object.
Diffstat (limited to 'indra/newview/llpreviewnotecard.cpp')
-rw-r--r--indra/newview/llpreviewnotecard.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpreviewnotecard.cpp b/indra/newview/llpreviewnotecard.cpp
index 850c3b350d..d4a8bbdf45 100644
--- a/indra/newview/llpreviewnotecard.cpp
+++ b/indra/newview/llpreviewnotecard.cpp
@@ -163,6 +163,16 @@ BOOL LLPreviewNotecard::canClose()
}
}
+/* virtual */
+void LLPreviewNotecard::setObjectID(const LLUUID& object_id)
+{
+ LLPreview::setObjectID(object_id);
+
+ LLViewerTextEditor* editor = getChild<LLViewerTextEditor>("Notecard Editor");
+ editor->setNotecardObjectID(mObjectUUID);
+ editor->makePristine();
+}
+
const LLInventoryItem* LLPreviewNotecard::getDragItem()
{
LLViewerTextEditor* editor = getChild<LLViewerTextEditor>("Notecard Editor");