diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llpreviewgesture.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2 meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz |
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llpreviewgesture.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewgesture.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/linden/indra/newview/llpreviewgesture.cpp b/linden/indra/newview/llpreviewgesture.cpp index 0d2c97a..1bd86fc 100644 --- a/linden/indra/newview/llpreviewgesture.cpp +++ b/linden/indra/newview/llpreviewgesture.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, |
@@ -955,6 +955,11 @@ void LLPreviewGesture::onLoadComplete(LLVFS *vfs, | |||
955 | } | 955 | } |
956 | else | 956 | else |
957 | { | 957 | { |
958 | // Get missing gesture's name. Use UUID if name can't be found. | ||
959 | LLStringBase<char>::format_map_t args; | ||
960 | LLInventoryItem *item = gInventory.getItem( *item_idp ); | ||
961 | args["[NAME]"] = item ? item->getName() : LLString( item_idp->asString() ); | ||
962 | |||
958 | if( gViewerStats ) | 963 | if( gViewerStats ) |
959 | { | 964 | { |
960 | gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED ); | 965 | gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED ); |
@@ -963,11 +968,11 @@ void LLPreviewGesture::onLoadComplete(LLVFS *vfs, | |||
963 | if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status || | 968 | if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status || |
964 | LL_ERR_FILE_EMPTY == status) | 969 | LL_ERR_FILE_EMPTY == status) |
965 | { | 970 | { |
966 | LLNotifyBox::showXml("GestureMissing"); | 971 | LLNotifyBox::showXml("GestureMissing", args); |
967 | } | 972 | } |
968 | else | 973 | else |
969 | { | 974 | { |
970 | LLNotifyBox::showXml("UnableToLoadGesture"); | 975 | LLNotifyBox::showXml("UnableToLoadGesture", args); |
971 | } | 976 | } |
972 | 977 | ||
973 | llwarns << "Problem loading gesture: " << status << llendl; | 978 | llwarns << "Problem loading gesture: " << status << llendl; |
@@ -1602,7 +1607,7 @@ void LLPreviewGesture::onClickAdd(void* data) | |||
1602 | if (!library_item) return; | 1607 | if (!library_item) return; |
1603 | 1608 | ||
1604 | const LLScrollListCell* library_cell = library_item->getColumn(0); | 1609 | const LLScrollListCell* library_cell = library_item->getColumn(0); |
1605 | const std::string& library_text = library_cell->getText(); | 1610 | const std::string& library_text = library_cell->getValue().asString(); |
1606 | 1611 | ||
1607 | self->addStep(library_text); | 1612 | self->addStep(library_text); |
1608 | 1613 | ||