aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llinventorymodel.cpp')
-rw-r--r--linden/indra/newview/llinventorymodel.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp
index 1029a3c..324e36a 100644
--- a/linden/indra/newview/llinventorymodel.cpp
+++ b/linden/indra/newview/llinventorymodel.cpp
@@ -1499,6 +1499,8 @@ void LLInventoryModel::stopBackgroundFetch()
1499//static 1499//static
1500void LLInventoryModel::backgroundFetch(void*) 1500void LLInventoryModel::backgroundFetch(void*)
1501{ 1501{
1502 if (gDisconnected)
1503 return;
1502 if (sBackgroundFetchActive && gAgent.getRegion()) 1504 if (sBackgroundFetchActive && gAgent.getRegion())
1503 { 1505 {
1504 //If we'll be using the capability, we'll be sending batches and the background thing isn't as important. 1506 //If we'll be using the capability, we'll be sending batches and the background thing isn't as important.
@@ -2876,6 +2878,14 @@ void LLInventoryModel::processSaveAssetIntoInventory(LLMessageSystem* msg,
2876 llinfos << "LLInventoryModel::processSaveAssetIntoInventory item" 2878 llinfos << "LLInventoryModel::processSaveAssetIntoInventory item"
2877 " not found: " << item_id << llendl; 2879 " not found: " << item_id << llendl;
2878 } 2880 }
2881
2882// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0e
2883 if (rlv_handler_t::isEnabled())
2884 {
2885 gRlvHandler.onSavedAssetIntoInventory(item_id);
2886 }
2887// [/RLVa:KB]
2888
2879 if(gViewerWindow) 2889 if(gViewerWindow)
2880 { 2890 {
2881 gViewerWindow->getWindow()->decBusyCount(); 2891 gViewerWindow->getWindow()->decBusyCount();
@@ -2918,6 +2928,23 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)
2918 // << llendl; 2928 // << llendl;
2919 if(tfolder->getUUID().notNull()) 2929 if(tfolder->getUUID().notNull())
2920 { 2930 {
2931// [RLVa:KB] - Checked: 2009-08-07 (RLVa-1.0.1f) | Added: RLVa-1.0.0f
2932 // TODO-RLVa: this really shouldn't go here, but if the inventory offer spans multiple BulkUpdateInventory messages
2933 // then the second message will cause the viewer to show the folder under its original name even though
2934 // it is renamed properly on the inventory server
2935 if ( (rlv_handler_t::isEnabled()) && (!RlvSettings::getForbidGiveToRLV()) )
2936 {
2937 LLViewerInventoryCategory* pRlvRoot = gRlvHandler.getSharedRoot();
2938 std::string strName = tfolder->getName();
2939 if ((pRlvRoot) && (pRlvRoot->getUUID() == tfolder->getParentUUID() ) && (strName.find(RLV_PUTINV_PREFIX) == 0))
2940 {
2941 strName.erase(0, strName.find(RLV_FOLDER_PREFIX_PUTINV)); // Strips the prefix while retaining while the '~'
2942 tfolder->rename(strName);
2943 tfolder->updateServer(FALSE);
2944 }
2945 }
2946// [/RLVa:KB]
2947
2921 folders.push_back(tfolder); 2948 folders.push_back(tfolder);
2922 LLViewerInventoryCategory* folderp = gInventory.getCategory(tfolder->getUUID()); 2949 LLViewerInventoryCategory* folderp = gInventory.getCategory(tfolder->getUUID());
2923 if(folderp) 2950 if(folderp)