summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuycurrency.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterbuycurrency.cpp')
-rw-r--r--indra/newview/llfloaterbuycurrency.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp
index dfc755c370..b183ba6912 100644
--- a/indra/newview/llfloaterbuycurrency.cpp
+++ b/indra/newview/llfloaterbuycurrency.cpp
@@ -59,6 +59,7 @@ public:
LLCurrencyUIManager mManager;
bool mHasTarget;
+ std::string mTargetName;
S32 mTargetPrice;
S32 mRequiredAmount;
@@ -115,13 +116,9 @@ 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)