Bug fix: circumvent using LLs notify system.
Can't use LLs LLFolderViewItem::rename from LLInventoryPanel::modelChanged because it's nonrobust spaghetti code and causes randomly sized loops. Also cleaned up the number of unused nameOrDescriptionChanged functions introduced in a previous commit.
This commit is contained in:
@@ -479,8 +479,8 @@ void LLInventoryPanel::modelChanged(U32 mask)
|
||||
|
||||
view_item->refresh();
|
||||
}
|
||||
// Singu note: let listeners know it was renamed.
|
||||
view_item->rename(view_item->getLabel());
|
||||
// Singu note: Needed to propagate name change to wearables.
|
||||
view_item->nameOrDescriptionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,7 +491,7 @@ void LLInventoryPanel::modelChanged(U32 mask)
|
||||
{
|
||||
if (view_item)
|
||||
{
|
||||
view_item->descriptionChanged();
|
||||
view_item->nameOrDescriptionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user