diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-06 15:56:11 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-06 15:56:11 +0300 | 
| commit | 4afbe638d9965578d53822300e41b00155df5386 (patch) | |
| tree | 7c1d077e548eea6d955feb8fb3e01db65c8fb08a | |
| parent | 71537daefda469c390b10f48bd01c9a2d59b8624 (diff) | |
SL-14067 FIXED The 'Unable to Buy' (L$) error persists until relogin
| -rw-r--r-- | indra/newview/llcurrencyuimanager.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llcurrencyuimanager.h | 2 | ||||
| -rw-r--r-- | indra/newview/llfloaterbuycurrency.cpp | 1 | 
3 files changed, 8 insertions, 0 deletions
| diff --git a/indra/newview/llcurrencyuimanager.cpp b/indra/newview/llcurrencyuimanager.cpp index cd7332c4d4..731b2dbcdb 100644 --- a/indra/newview/llcurrencyuimanager.cpp +++ b/indra/newview/llcurrencyuimanager.cpp @@ -604,6 +604,11 @@ bool LLCurrencyUIManager::bought()  	return impl.mBought;  } +void LLCurrencyUIManager::clearError() +{ +	return impl.clearError(); +} +  bool LLCurrencyUIManager::hasError()  {  	return impl.mError; diff --git a/indra/newview/llcurrencyuimanager.h b/indra/newview/llcurrencyuimanager.h index 3f37db8db1..7c05acbb05 100644 --- a/indra/newview/llcurrencyuimanager.h +++ b/indra/newview/llcurrencyuimanager.h @@ -80,6 +80,8 @@ public:  	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(); diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp index 5ee6f122bf..0cfac166c7 100644 --- a/indra/newview/llfloaterbuycurrency.cpp +++ b/indra/newview/llfloaterbuycurrency.cpp @@ -193,6 +193,7 @@ void LLFloaterBuyCurrencyUI::updateUI()  		args["TITLE"] = getString("info_cannot_buy");  		args["MESSAGE"] = mManager.errorMessage();  		LLNotificationsUtil::add("CouldNotBuyCurrency", args); +		mManager.clearError();  		closeFloater();  	}  	else | 
