summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuycurrencyhtml.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-06-14 10:55:25 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-06-14 10:55:25 -0700
commitbaf9b3cb078c04b019fccc4ae8a54db05b14bdef (patch)
treeaa422043ec900036716d35e73240efc9df152d32 /indra/newview/llfloaterbuycurrencyhtml.cpp
parent76cf9e29a77566c10da6184833fad6b0912e9688 (diff)
parentfbc95fe7e77ed093f8f7938a4755ce6b175dcaff (diff)
Merge
Diffstat (limited to 'indra/newview/llfloaterbuycurrencyhtml.cpp')
-rw-r--r--indra/newview/llfloaterbuycurrencyhtml.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterbuycurrencyhtml.cpp b/indra/newview/llfloaterbuycurrencyhtml.cpp
index 5815df36d1..7f41a64064 100644
--- a/indra/newview/llfloaterbuycurrencyhtml.cpp
+++ b/indra/newview/llfloaterbuycurrencyhtml.cpp
@@ -87,6 +87,9 @@ void LLFloaterBuyCurrencyHTML::navigateToFinalURL()
replace[ "[MSG]" ] = LLURI::escape( mMessage );
LLStringUtil::format( buy_currency_url, replace );
+ // write final URL to debug console
+ llinfos << "Buy currency HTML prased URL is " << buy_currency_url << llendl;
+
// kick off the navigation
mBrowser->navigateTo( buy_currency_url );
}
@@ -98,6 +101,9 @@ void LLFloaterBuyCurrencyHTML::handleMediaEvent( LLPluginClassMedia* self, EMedi
// placeholder for now - just in case we want to catch media events
if ( LLPluginClassMediaOwner::MEDIA_EVENT_NAVIGATE_COMPLETE == event )
{
+ // update currency after we complete a navigation since there are many ways
+ // this can result in a different L$ balance
+ LLStatusBar::sendMoneyBalanceRequest();
};
}
@@ -105,6 +111,9 @@ void LLFloaterBuyCurrencyHTML::handleMediaEvent( LLPluginClassMedia* self, EMedi
//
void LLFloaterBuyCurrencyHTML::onClose( bool app_quitting )
{
+ // update L$ balanace one more time
+ LLStatusBar::sendMoneyBalanceRequest();
+
destroy();
}