summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2010-12-10 16:06:33 -0800
committerMerov Linden <merov@lindenlab.com>2010-12-10 16:06:33 -0800
commit8f5f68d1cc904e7774e20677237909940c63168d (patch)
treec4885fb52d3253eec4604a1c0ebdd5e236e586bc /indra
parent0df07ea31afe72b2e30fc061b70b3205925b6107 (diff)
STORM-524 : Fix update L$ balance when buying currency
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloaterbuycurrency.cpp9
-rw-r--r--indra/newview/llfloaterbuycurrencyhtml.cpp2
2 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp
index 48b00a7964..e21a8594bc 100644
--- a/indra/newview/llfloaterbuycurrency.cpp
+++ b/indra/newview/llfloaterbuycurrency.cpp
@@ -261,26 +261,29 @@ void LLFloaterBuyCurrencyUI::updateUI()
}
getChildView("getting_data")->setVisible( !mManager.canBuy() && !hasError);
-
- // Update L$ balance
- LLStatusBar::sendMoneyBalanceRequest();
}
void LLFloaterBuyCurrencyUI::onClickBuy()
{
mManager.buy(getString("buy_currency"));
updateUI();
+ // Update L$ balance
+ LLStatusBar::sendMoneyBalanceRequest();
}
void LLFloaterBuyCurrencyUI::onClickCancel()
{
closeFloater();
+ // Update L$ balance
+ LLStatusBar::sendMoneyBalanceRequest();
}
void LLFloaterBuyCurrencyUI::onClickErrorWeb()
{
LLWeb::loadURLExternal(mManager.errorURI());
closeFloater();
+ // Update L$ balance
+ LLStatusBar::sendMoneyBalanceRequest();
}
// static
diff --git a/indra/newview/llfloaterbuycurrencyhtml.cpp b/indra/newview/llfloaterbuycurrencyhtml.cpp
index e8050c4480..013cf74c7b 100644
--- a/indra/newview/llfloaterbuycurrencyhtml.cpp
+++ b/indra/newview/llfloaterbuycurrencyhtml.cpp
@@ -82,7 +82,7 @@ void LLFloaterBuyCurrencyHTML::navigateToFinalURL()
LLStringUtil::format( buy_currency_url, replace );
// 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
mBrowser->navigateTo( buy_currency_url, "text/html" );