diff options
author | Merov Linden <merov@lindenlab.com> | 2014-06-10 14:04:53 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-06-10 14:04:53 -0700 |
commit | ae2f24d0c10a9a91090aa040f8367e8691fcbbd1 (patch) | |
tree | f71d8be0637e695cdd58491ea02cb1305d8843ae /indra/newview/llfloatermarketplacelistings.cpp | |
parent | d37ef40e98059e0ceb40385e3c40e891e6eec4ec (diff) |
DD : Clean up marketplace listings folder creation so we create it in only one place
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 88abd9ff9d..1d8097a813 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -588,10 +588,12 @@ void LLFloaterMarketplaceValidation::onOpen(const LLSD& key) mEditor->setValue(LLSD()); // Validates the marketplace - LLUUID marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, true); - llassert(marketplacelistings_id.notNull()); - LLViewerInventoryCategory* cat = gInventory.getCategory(marketplacelistings_id); - validate_marketplacelistings(cat,boost::bind(&LLFloaterMarketplaceValidation::appendMessage, this, _1)); + LLUUID marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false); + if (marketplacelistings_id.notNull()) + { + LLViewerInventoryCategory* cat = gInventory.getCategory(marketplacelistings_id); + validate_marketplacelistings(cat,boost::bind(&LLFloaterMarketplaceValidation::appendMessage, this, _1)); + } } // static |