summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateropenobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloateropenobject.cpp')
-rw-r--r--indra/newview/llfloateropenobject.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/indra/newview/llfloateropenobject.cpp b/indra/newview/llfloateropenobject.cpp
index fc483dd307..f4984df6d9 100644
--- a/indra/newview/llfloateropenobject.cpp
+++ b/indra/newview/llfloateropenobject.cpp
@@ -80,12 +80,26 @@ void LLFloaterOpenObject::refresh()
{
mPanelInventory->refresh();
+ std::string name;
+ BOOL enabled;
+
LLSelectNode* node = mObjectSelection->getFirstRootNode();
if (node)
{
- std::string name = node->mName;
- childSetTextArg("object_name", "[DESC]", name);
+ name = node->mName;
+ enabled = TRUE;
+ }
+ else
+ {
+ name = "";
+ enabled = FALSE;
}
+
+ childSetTextArg("object_name", "[DESC]", name);
+
+ childSetEnabled("copy_to_inventory_button", enabled);
+ childSetEnabled("copy_and_wear_button", enabled);
+
}
void LLFloaterOpenObject::draw()