diff options
Diffstat (limited to 'linden/indra')
-rwxr-xr-x | linden/indra/newview/llviewermessage.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index af4b8d8..45280e4 100755 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -910,7 +910,14 @@ void open_offer(const std::vector<LLUUID>& items, const std::string& from_name) | |||
910 | switch(asset_type) | 910 | switch(asset_type) |
911 | { | 911 | { |
912 | case LLAssetType::AT_NOTECARD: | 912 | case LLAssetType::AT_NOTECARD: |
913 | open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(), LLUUID::null, show_keep_discard, LLUUID::null, FALSE); | 913 | // Don't show WindLight settings as notecards. |
914 | // *TODO: centralise all these damned .wl/.ww checks somewhere. | ||
915 | if((item->getName().length() > 2 && item->getName().compare(item->getName().length() - 3, 3, ".wl") != 0) && | ||
916 | (item->getName().compare(item->getName().length() - 3, 3, ".ww") != 0)) | ||
917 | { | ||
918 | open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(), | ||
919 | LLUUID::null, show_keep_discard, LLUUID::null, FALSE); | ||
920 | } | ||
914 | break; | 921 | break; |
915 | case LLAssetType::AT_LANDMARK: | 922 | case LLAssetType::AT_LANDMARK: |
916 | open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); | 923 | open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); |