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:
Aleric Inglewood
2013-07-20 18:28:52 +02:00
parent 7162214c01
commit 85ff52be30
10 changed files with 33 additions and 63 deletions

View File

@@ -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();
}
}