diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 121f54095b0eaa9d8c7887161e540b2a58728699..76cca065c8f7fdfee33fc275bcfaee2ecba62714 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -597,12 +597,6 @@ BOOL LLFloaterMarketplaceValidation::postBuild() mEditor->setFocus(TRUE); 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)); - return TRUE; } @@ -617,6 +611,18 @@ void LLFloaterMarketplaceValidation::draw() LLFloater::draw(); } +void LLFloaterMarketplaceValidation::onOpen(const LLSD& key) +{ + // Clear the text panel + 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)); +} + // static void LLFloaterMarketplaceValidation::onOK( void* userdata ) { diff --git a/indra/newview/llfloatermarketplacelistings.h b/indra/newview/llfloatermarketplacelistings.h index 91ae33d1f2233a8613057d75637dfab74ea1c289..cb900c903c1056cdb24b060d369a3f726b922b61 100755 --- a/indra/newview/llfloatermarketplacelistings.h +++ b/indra/newview/llfloatermarketplacelistings.h @@ -162,6 +162,7 @@ class LLFloaterMarketplaceValidation : public LLFloater virtual BOOL postBuild(); virtual void draw(); + virtual void onOpen(const LLSD& key); void appendMessage(std::string& message); static void onOK( void* userdata );