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

STORM-524 : Fix update L$ balance when buying currency

parent 0df07ea3
No related branches found
No related tags found
No related merge requests found
...@@ -261,26 +261,29 @@ void LLFloaterBuyCurrencyUI::updateUI() ...@@ -261,26 +261,29 @@ void LLFloaterBuyCurrencyUI::updateUI()
} }
getChildView("getting_data")->setVisible( !mManager.canBuy() && !hasError); getChildView("getting_data")->setVisible( !mManager.canBuy() && !hasError);
// Update L$ balance
LLStatusBar::sendMoneyBalanceRequest();
} }
void LLFloaterBuyCurrencyUI::onClickBuy() void LLFloaterBuyCurrencyUI::onClickBuy()
{ {
mManager.buy(getString("buy_currency")); mManager.buy(getString("buy_currency"));
updateUI(); updateUI();
// Update L$ balance
LLStatusBar::sendMoneyBalanceRequest();
} }
void LLFloaterBuyCurrencyUI::onClickCancel() void LLFloaterBuyCurrencyUI::onClickCancel()
{ {
closeFloater(); closeFloater();
// Update L$ balance
LLStatusBar::sendMoneyBalanceRequest();
} }
void LLFloaterBuyCurrencyUI::onClickErrorWeb() void LLFloaterBuyCurrencyUI::onClickErrorWeb()
{ {
LLWeb::loadURLExternal(mManager.errorURI()); LLWeb::loadURLExternal(mManager.errorURI());
closeFloater(); closeFloater();
// Update L$ balance
LLStatusBar::sendMoneyBalanceRequest();
} }
// static // static
......
...@@ -82,7 +82,7 @@ void LLFloaterBuyCurrencyHTML::navigateToFinalURL() ...@@ -82,7 +82,7 @@ void LLFloaterBuyCurrencyHTML::navigateToFinalURL()
LLStringUtil::format( buy_currency_url, replace ); LLStringUtil::format( buy_currency_url, replace );
// write final URL to debug console // write final URL to debug console
llinfos << "Buy currency HTML prased URL is " << buy_currency_url << llendl; llinfos << "Buy currency HTML parsed URL is " << buy_currency_url << llendl;
// kick off the navigation // kick off the navigation
mBrowser->navigateTo( buy_currency_url, "text/html" ); mBrowser->navigateTo( buy_currency_url, "text/html" );
......
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