diff options
| author | Dave Houlton <euclid@lindenlab.com> | 2020-01-28 17:26:45 -0700 | 
|---|---|---|
| committer | Dave Houlton <euclid@lindenlab.com> | 2020-01-28 17:26:45 -0700 | 
| commit | 2a6b48c9b0c813c5e4ff8ac176fdf4e6c9466c22 (patch) | |
| tree | 7f608467b3608127049ddc78d5045da032777cb4 /indra/newview/llviewermenu.cpp | |
| parent | 3e44cb06df22dd1b684dc8574c3b44d0851527bc (diff) | |
| parent | 2998552f3d7447da316afdd1713595528596a0c5 (diff) | |
DRTVWR-440, merge in latest from 6.3.7 release
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
| -rw-r--r-- | indra/newview/llviewermenu.cpp | 27 | 
1 files changed, 12 insertions, 15 deletions
| diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index a79a5e7673..94ee425405 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -398,23 +398,20 @@ void set_merchant_SLM_menu()  void check_merchant_status(bool force)  { -    if (!gSavedSettings.getBOOL("InventoryOutboxDisplayBoth")) +    if (force)      { -        if (force) -        { -            // Reset the SLM status: we actually want to check again, that's the point of calling check_merchant_status() -            LLMarketplaceData::instance().setSLMStatus(MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED); -        } -        // Hide SLM related menu item -        gMenuHolder->getChild<LLView>("MarketplaceListings")->setVisible(FALSE); -         -        // Also disable the toolbar button for Marketplace Listings -        LLCommand* command = LLCommandManager::instance().getCommand("marketplacelistings"); -		gToolBarView->enableCommand(command->id(), false); -         -        // Launch an SLM test connection to get the merchant status -        LLMarketplaceData::instance().initializeSLM(boost::bind(&set_merchant_SLM_menu)); +        // Reset the SLM status: we actually want to check again, that's the point of calling check_merchant_status() +        LLMarketplaceData::instance().setSLMStatus(MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED);      } +    // Hide SLM related menu item +    gMenuHolder->getChild<LLView>("MarketplaceListings")->setVisible(FALSE); + +    // Also disable the toolbar button for Marketplace Listings +    LLCommand* command = LLCommandManager::instance().getCommand("marketplacelistings"); +    gToolBarView->enableCommand(command->id(), false); + +    // Launch an SLM test connection to get the merchant status +    LLMarketplaceData::instance().initializeSLM(boost::bind(&set_merchant_SLM_menu));  }  void init_menus() | 
