diff options
Diffstat (limited to 'linden/indra/newview/llfloaterbuycurrency.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterbuycurrency.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/linden/indra/newview/llfloaterbuycurrency.cpp b/linden/indra/newview/llfloaterbuycurrency.cpp index cbd41f4..1fe6737 100644 --- a/linden/indra/newview/llfloaterbuycurrency.cpp +++ b/linden/indra/newview/llfloaterbuycurrency.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2005&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2005&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2005-2008, Linden Research, Inc. | 7 | * Copyright (c) 2005-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -358,11 +358,6 @@ void LLFloaterBuyCurrencyUI::onClickErrorWeb(void* data) | |||
358 | // static | 358 | // static |
359 | void LLFloaterBuyCurrency::buyCurrency() | 359 | void LLFloaterBuyCurrency::buyCurrency() |
360 | { | 360 | { |
361 | if (gHideLinks) | ||
362 | { | ||
363 | return; | ||
364 | } | ||
365 | |||
366 | LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); | 361 | LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); |
367 | ui->noTarget(); | 362 | ui->noTarget(); |
368 | ui->updateUI(); | 363 | ui->updateUI(); |
@@ -371,15 +366,6 @@ void LLFloaterBuyCurrency::buyCurrency() | |||
371 | 366 | ||
372 | void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price) | 367 | void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price) |
373 | { | 368 | { |
374 | if (gHideLinks) | ||
375 | { | ||
376 | LLStringUtil::format_map_t args; | ||
377 | args["[NAME]"] = name; | ||
378 | args["[PRICE]"] = llformat("%d", price); | ||
379 | gViewerWindow->alertXml("NotEnoughCurrency", args); | ||
380 | return; | ||
381 | } | ||
382 | |||
383 | LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); | 369 | LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); |
384 | ui->target(name, price); | 370 | ui->target(name, price); |
385 | ui->updateUI(); | 371 | ui->updateUI(); |