summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuycurrency.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-09-04 19:55:26 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-09-04 19:55:26 +0300
commit1557cd8fe2733c32c7788daf752fe23c7190947f (patch)
tree1e3fbfba3335318f1d086bd8a5f3f74bbc1f0b3f /indra/newview/llfloaterbuycurrency.cpp
parent85d90ce6bda00f1cb6fc8f0a75e739f1273843b3 (diff)
SL-13814 Updated label text
Diffstat (limited to 'indra/newview/llfloaterbuycurrency.cpp')
-rw-r--r--indra/newview/llfloaterbuycurrency.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp
index b183ba6912..dfc755c370 100644
--- a/indra/newview/llfloaterbuycurrency.cpp
+++ b/indra/newview/llfloaterbuycurrency.cpp
@@ -59,7 +59,6 @@ public:
LLCurrencyUIManager mManager;
bool mHasTarget;
- std::string mTargetName;
S32 mTargetPrice;
S32 mRequiredAmount;
@@ -116,9 +115,13 @@ void LLFloaterBuyCurrencyUI::noTarget()
void LLFloaterBuyCurrencyUI::target(const std::string& name, S32 price)
{
mHasTarget = true;
- mTargetName = name;
mTargetPrice = price;
+ if (!name.empty())
+ {
+ getChild<LLUICtrl>("target_price_label")->setValue(name);
+ }
+
S32 balance = gStatusBar->getBalance();
S32 need = price - balance;
if (need < 0)