summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateroutbox.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-10-24 22:46:26 -0700
committerMerov Linden <merov@lindenlab.com>2014-10-24 22:46:26 -0700
commit0291b82f94533a1c1471ce8deedd13337273aa1f (patch)
tree8e1b2a01152bdd4c00a84364a9e78acfb363ed63 /indra/newview/llfloateroutbox.cpp
parentb630544159f1cad8c05a262422bf100d2579c76d (diff)
DD-243 : Set up callbacks for merchant outbox importer in the postBuild
Diffstat (limited to 'indra/newview/llfloateroutbox.cpp')
-rwxr-xr-xindra/newview/llfloateroutbox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/llfloateroutbox.cpp b/indra/newview/llfloateroutbox.cpp
index 0c4b58e501..b7b1634a5f 100755
--- a/indra/newview/llfloateroutbox.cpp
+++ b/indra/newview/llfloateroutbox.cpp
@@ -160,6 +160,12 @@ BOOL LLFloaterOutbox::postBuild()
mCategoryAddedObserver = new LLOutboxAddedObserver(this);
gInventory.addObserver(mCategoryAddedObserver);
+ // Setup callbacks for importer
+ LLMarketplaceInventoryImporter& importer = LLMarketplaceInventoryImporter::instance();
+ importer.setInitializationErrorCallback(boost::bind(&LLFloaterOutbox::initializationReportError, this, _1, _2));
+ importer.setStatusChangedCallback(boost::bind(&LLFloaterOutbox::importStatusChanged, this, _1));
+ importer.setStatusReportCallback(boost::bind(&LLFloaterOutbox::importReportResults, this, _1, _2));
+
return TRUE;
}
@@ -298,11 +304,8 @@ void LLFloaterOutbox::initializeMarketPlace()
// Initialize the marketplace import API
//
LLMarketplaceInventoryImporter& importer = LLMarketplaceInventoryImporter::instance();
-
if (!importer.isInitialized())
{
- importer.setInitializationErrorCallback(boost::bind(&LLFloaterOutbox::initializationReportError, this, _1, _2));
- importer.setStatusChangedCallback(boost::bind(&LLFloaterOutbox::importStatusChanged, this, _1));
importer.initialize();
}
}
@@ -516,9 +519,6 @@ void LLFloaterOutbox::onImportButtonClicked()
mOutboxInventoryPanel.get()->clearSelection();
}
- LLMarketplaceInventoryImporter& importer = LLMarketplaceInventoryImporter::instance();
- importer.setStatusReportCallback(boost::bind(&LLFloaterOutbox::importReportResults, this, _1, _2));
-
mImportBusy = LLMarketplaceInventoryImporter::instance().triggerImport();
}