diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-05-24 08:53:21 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-05-24 08:53:21 -0400 |
commit | 6c56c77ec575141963c5de8dfa228253fe175bc3 (patch) | |
tree | 65ec3b7388af37390fe73ca4b3eb23d10ef92c3a /indra/newview/llinventoryfunctions.cpp | |
parent | b0303445f1af83057e4d27d763f7b860f20f0143 (diff) |
SH-4027 WIP - initial implementation of item update via AIS.
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index f1a4889f5a..b5fb226872 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -123,12 +123,9 @@ void rename_category(LLInventoryModel* model, const LLUUID& cat_id, const std::s return; } - LLPointer<LLViewerInventoryCategory> new_cat = new LLViewerInventoryCategory(cat); - new_cat->rename(new_name); - new_cat->updateServer(FALSE); - model->updateCategory(new_cat); - - model->notifyObservers(); + LLSD updates; + updates["name"] = new_name; + update_inventory_category(cat_id, updates, NULL); } void copy_inventory_category(LLInventoryModel* model, |