aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryactions.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llinventoryactions.cpp
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/llinventoryactions.cpp')
-rw-r--r--linden/indra/newview/llinventoryactions.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llinventoryactions.cpp b/linden/indra/newview/llinventoryactions.cpp
index 900a729..af4e16b 100644
--- a/linden/indra/newview/llinventoryactions.cpp
+++ b/linden/indra/newview/llinventoryactions.cpp
@@ -324,16 +324,18 @@ void do_create(LLInventoryModel *model, LLInventoryPanel *ptr, LLString type, LL
324{ 324{
325 if ("category" == type) 325 if ("category" == type)
326 { 326 {
327 LLUUID category;
327 if (self) 328 if (self)
328 { 329 {
329 model->createNewCategory(self->getUUID(), LLAssetType::AT_NONE, NULL); 330 category = model->createNewCategory(self->getUUID(), LLAssetType::AT_NONE, NULL);
330 } 331 }
331 else 332 else
332 { 333 {
333 model->createNewCategory(gAgent.getInventoryRootID(), 334 category = model->createNewCategory(gAgent.getInventoryRootID(),
334 LLAssetType::AT_NONE, NULL); 335 LLAssetType::AT_NONE, NULL);
335 } 336 }
336 model->notifyObservers(); 337 model->notifyObservers();
338 ptr->setSelection(category, TRUE);
337 } 339 }
338 else if ("lsl" == type) 340 else if ("lsl" == type)
339 { 341 {
@@ -427,6 +429,8 @@ void do_create(LLInventoryModel *model, LLInventoryPanel *ptr, LLString type, LL
427 LLUUID parent_id = self ? self->getUUID() : gInventory.findCategoryUUIDForType(LLAssetType::AT_BODYPART); 429 LLUUID parent_id = self ? self->getUUID() : gInventory.findCategoryUUIDForType(LLAssetType::AT_BODYPART);
428 LLFolderBridge::createWearable(parent_id, WT_EYES); 430 LLFolderBridge::createWearable(parent_id, WT_EYES);
429 } 431 }
432
433 ptr->getRootFolder()->setNeedsAutoRename(TRUE);
430} 434}
431 435
432class LLDoCreate : public inventory_panel_listener_t 436class LLDoCreate : public inventory_panel_listener_t