SL-19857 Exception at category creation
parent
19ed999be0
commit
14eadadf99
|
|
@ -1031,13 +1031,14 @@ void LLInventoryModel::createNewCategory(const LLUUID& parent_id,
|
|||
{
|
||||
if (new_category.isNull())
|
||||
{
|
||||
if (callback)
|
||||
if (callback && !callback.empty())
|
||||
{
|
||||
callback(new_category);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// todo: not needed since AIS does the accounting?
|
||||
LLViewerInventoryCategory* folderp = gInventory.getCategory(new_category);
|
||||
if (!folderp)
|
||||
{
|
||||
|
|
@ -1057,7 +1058,7 @@ void LLInventoryModel::createNewCategory(const LLUUID& parent_id,
|
|||
updateCategory(cat);
|
||||
}
|
||||
|
||||
if (callback)
|
||||
if (callback && !callback.empty())
|
||||
{
|
||||
callback(new_category);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1766,7 +1766,7 @@ void menu_create_inventory_item(LLInventoryPanel* panel, LLUUID dest_id, const L
|
|||
if (panel)
|
||||
{
|
||||
LLHandle<LLPanel> handle = panel->getHandle();
|
||||
std::function<void(const LLUUID&)> callback_cat_created = [handle](const LLUUID& new_category_id)
|
||||
callback_cat_created = [handle](const LLUUID& new_category_id)
|
||||
{
|
||||
gInventory.notifyObservers();
|
||||
LLInventoryPanel* panel = static_cast<LLInventoryPanel*>(handle.get());
|
||||
|
|
|
|||
Loading…
Reference in New Issue