summaryrefslogtreecommitdiff
path: root/indra/newview/llgesturemgr.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2007-12-04 16:46:00 +0000
committerSteven Bennetts <steve@lindenlab.com>2007-12-04 16:46:00 +0000
commitf8511d77a70bea452cde7270b47044358e58427c (patch)
tree7772dd518136c7f466693f26db437ed1cf23caa6 /indra/newview/llgesturemgr.cpp
parent90aa2ddb2efede12f12011fc163e3007e3ba7104 (diff)
EFFECTIVE MERGE: maint-ui-qa3 -r 73391:74133 -> release
ACTUAL MERGE: merge release@74893 maint-ui-3-merge@74902 -> release
Diffstat (limited to 'indra/newview/llgesturemgr.cpp')
-rw-r--r--indra/newview/llgesturemgr.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp
index 537cadf1d1..32c712d926 100644
--- a/indra/newview/llgesturemgr.cpp
+++ b/indra/newview/llgesturemgr.cpp
@@ -1006,14 +1006,20 @@ void LLGestureManager::onLoadComplete(LLVFS *vfs,
gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED );
}
+ // Get missing gesture's name. Use UUID if name can't be found.
+ LLStringBase<char>::format_map_t args;
+ LLInventoryItem *item = gInventory.getItem( item_id );
+ args["[NAME]"] = item ? item->getName() : LLString( item_id.asString() );
+
+
if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status ||
LL_ERR_FILE_EMPTY == status)
{
- LLNotifyBox::showXml("GestureMissing");
+ LLNotifyBox::showXml("GestureMissing", args);
}
else
{
- LLNotifyBox::showXml("UnableToLoadGesture");
+ LLNotifyBox::showXml("UnableToLoadGesture", args);
}
llwarns << "Problem loading gesture: " << status << llendl;