diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llgesturemgr.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/newview/llgesturemgr.cpp b/linden/indra/newview/llgesturemgr.cpp index dd79397..3be5d4e 100644 --- a/linden/indra/newview/llgesturemgr.cpp +++ b/linden/indra/newview/llgesturemgr.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -1006,14 +1006,20 @@ void LLGestureManager::onLoadComplete(LLVFS *vfs, | |||
1006 | gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED ); | 1006 | gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED ); |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | // Get missing gesture's name. Use UUID if name can't be found. | ||
1010 | LLStringBase<char>::format_map_t args; | ||
1011 | LLInventoryItem *item = gInventory.getItem( item_id ); | ||
1012 | args["[NAME]"] = item ? item->getName() : LLString( item_id.asString() ); | ||
1013 | |||
1014 | |||
1009 | if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status || | 1015 | if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status || |
1010 | LL_ERR_FILE_EMPTY == status) | 1016 | LL_ERR_FILE_EMPTY == status) |
1011 | { | 1017 | { |
1012 | LLNotifyBox::showXml("GestureMissing"); | 1018 | LLNotifyBox::showXml("GestureMissing", args); |
1013 | } | 1019 | } |
1014 | else | 1020 | else |
1015 | { | 1021 | { |
1016 | LLNotifyBox::showXml("UnableToLoadGesture"); | 1022 | LLNotifyBox::showXml("UnableToLoadGesture", args); |
1017 | } | 1023 | } |
1018 | 1024 | ||
1019 | llwarns << "Problem loading gesture: " << status << llendl; | 1025 | llwarns << "Problem loading gesture: " << status << llendl; |