Skip to content
Snippets Groups Projects
Commit 3c6237f4 authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

SL-14067 FIXED The 'Unable to Buy' (L$) error persists until relogin

parent f08421e6
No related branches found
No related tags found
No related merge requests found
......@@ -603,6 +603,11 @@ bool LLCurrencyUIManager::bought()
return impl.mBought;
}
void LLCurrencyUIManager::clearError()
{
return impl.clearError();
}
bool LLCurrencyUIManager::hasError()
{
return impl.mError;
......
......@@ -80,6 +80,8 @@ class LLCurrencyUIManager
bool buying(); // are we in the process of buying?
bool bought(); // did the buy() transaction complete successfully
void clearError();
bool hasError();
std::string errorMessage();
std::string errorURI();
......
......@@ -184,6 +184,7 @@ void LLFloaterBuyCurrencyUI::updateUI()
args["TITLE"] = getString("info_cannot_buy");
args["MESSAGE"] = mManager.errorMessage();
LLNotificationsUtil::add("CouldNotBuyCurrency", args);
mManager.clearError();
closeFloater();
}
else
......
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