diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpreviewlandmark.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llpreviewlandmark.cpp b/linden/indra/newview/llpreviewlandmark.cpp index 07addad..a8a510f 100644 --- a/linden/indra/newview/llpreviewlandmark.cpp +++ b/linden/indra/newview/llpreviewlandmark.cpp | |||
@@ -89,10 +89,12 @@ LLPreviewLandmark::LLPreviewLandmark(const std::string& name, | |||
89 | inv_item), | 89 | inv_item), |
90 | mLandmark( NULL ) | 90 | mLandmark( NULL ) |
91 | { | 91 | { |
92 | |||
93 | mFactoryMap["place_details_panel"] = LLCallbackMap(LLPreviewLandmark::createPlaceDetail, this); | 92 | mFactoryMap["place_details_panel"] = LLCallbackMap(LLPreviewLandmark::createPlaceDetail, this); |
94 | if (show_keep_discard) | 93 | if (show_keep_discard) |
95 | { | 94 | { |
95 | // Move the notification in llviewermessage in the if/else there please. | ||
96 | // This class is no more called if show_keep_discard != TRUE -- Ele | ||
97 | |||
96 | // Decided against this, a text notification is a better fix for this -- McCabe | 98 | // Decided against this, a text notification is a better fix for this -- McCabe |
97 | //LLUICtrlFactory::getInstance()->buildFloater(this, "floater_preview_new_landmark.xml", &getFactoryMap()); | 99 | //LLUICtrlFactory::getInstance()->buildFloater(this, "floater_preview_new_landmark.xml", &getFactoryMap()); |
98 | //childSetAction("Discard btn",onDiscardBtn,this); | 100 | //childSetAction("Discard btn",onDiscardBtn,this); |
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index af4b8d8..0b5b381 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -913,7 +913,8 @@ void open_offer(const std::vector<LLUUID>& items, const std::string& from_name) | |||
913 | open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(), LLUUID::null, show_keep_discard, LLUUID::null, FALSE); | 913 | open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(), LLUUID::null, show_keep_discard, LLUUID::null, FALSE); |
914 | break; | 914 | break; |
915 | case LLAssetType::AT_LANDMARK: | 915 | case LLAssetType::AT_LANDMARK: |
916 | open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); | 916 | if (!show_keep_discard) |
917 | open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), FALSE, LLUUID::null, FALSE); | ||
917 | break; | 918 | break; |
918 | case LLAssetType::AT_TEXTURE: | 919 | case LLAssetType::AT_TEXTURE: |
919 | open_texture(*it, std::string("Texture: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); | 920 | open_texture(*it, std::string("Texture: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); |