diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-12 19:04:54 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-12 19:04:54 +0300 |
commit | d9c779d59ce3c32e3dd64ac83b2869756a689747 (patch) | |
tree | a2435d1e83465a9e45a8ef0bdb20f9f3dc5fe444 | |
parent | 31c7b08c864b18b576754c7f1c315e0b6f47b8d9 (diff) |
SL-14093 Show the amount of saved categories and items
-rw-r--r-- | indra/newview/llinventorymodel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index aad57b4e5b..28db6a5808 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -2816,6 +2816,7 @@ bool LLInventoryModel::saveToFile(const std::string& filename, fileXML << LLSDOStreamer<LLSDNotationFormatter>(cache_ver) << std::endl; S32 count = categories.size(); + S32 cat_count = 0; S32 i; for(i = 0; i < count; ++i) { @@ -2823,17 +2824,20 @@ bool LLInventoryModel::saveToFile(const std::string& filename, if(cat->getVersion() != LLViewerInventoryCategory::VERSION_UNKNOWN) { fileXML << LLSDOStreamer<LLSDNotationFormatter>(cat->exportLLSD()) << std::endl; + cat_count++; } } - count = items.size(); - for(i = 0; i < count; ++i) + S32 it_count = items.size(); + for(i = 0; i < it_count; ++i) { fileXML << LLSDOStreamer<LLSDNotationFormatter>(items[i]->asLLSD()) << std::endl; } fileXML.close(); + LL_INFOS(LOG_INV) << "Inventory saved: " << cat_count << " categories, " << it_count << " items." << LL_ENDL; + return true; } |