Skip to content
Snippets Groups Projects
Commit 370620c5 authored by Merov Linden's avatar Merov Linden
Browse files

DD-19 : Revalidate the marketplace when reopening the Audit floater

parent 59f512b3
No related branches found
No related tags found
No related merge requests found
...@@ -597,12 +597,6 @@ BOOL LLFloaterMarketplaceValidation::postBuild() ...@@ -597,12 +597,6 @@ BOOL LLFloaterMarketplaceValidation::postBuild()
mEditor->setFocus(TRUE); mEditor->setFocus(TRUE);
mEditor->setValue(LLSD()); 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; return TRUE;
} }
...@@ -617,6 +611,18 @@ void LLFloaterMarketplaceValidation::draw() ...@@ -617,6 +611,18 @@ void LLFloaterMarketplaceValidation::draw()
LLFloater::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 // static
void LLFloaterMarketplaceValidation::onOK( void* userdata ) void LLFloaterMarketplaceValidation::onOK( void* userdata )
{ {
......
...@@ -162,6 +162,7 @@ class LLFloaterMarketplaceValidation : public LLFloater ...@@ -162,6 +162,7 @@ class LLFloaterMarketplaceValidation : public LLFloater
virtual BOOL postBuild(); virtual BOOL postBuild();
virtual void draw(); virtual void draw();
virtual void onOpen(const LLSD& key);
void appendMessage(std::string& message); void appendMessage(std::string& message);
static void onOK( void* userdata ); static void onOK( void* userdata );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment