Skip to content

Commit

Permalink
#3322 No confirmation is shown when gifting all your money
Browse files Browse the repository at this point in the history
  • Loading branch information
LLGuru committed Jan 2, 2025
1 parent 43853c2 commit 30aa181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indra/newview/llfloaterpay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void LLFloaterPay::onGive(give_money_ptr info)
amount = atoi(text_field->getValue().asString().c_str());
}

if (amount > PAY_AMOUNT_NOTIFICATION && gStatusBar && gStatusBar->getBalance() > amount)
if (amount > PAY_AMOUNT_NOTIFICATION)

This comment has been minimized.

Copy link
@Ansariel

Ansariel Jan 7, 2025

Contributor

if (amount > PAY_AMOUNT_NOTIFICATION && gStatusBar && gStatusBar->getBalance() >= amount)

Or aren't you otherwise triggering a double notification if you try to pay more than your current account balance is? At least that is how the check in Firestorm looks like.

{
LLUUID payee_id = LLUUID::null;
bool is_group = false;
Expand Down

0 comments on commit 30aa181

Please sign in to comment.