reversed ds box

This commit is contained in:
Evan Duffield 2014-08-05 06:37:24 -07:00
parent 9aa004beb2
commit 6a731e011c
2 changed files with 5 additions and 3 deletions

View File

@ -149,10 +149,10 @@ void SendCoinsDialog::on_sendButton_clicked()
recipients[0].inputType = "ONLY_DENOMINATED";
if(ui->inputType->currentText() == "Use Anonymous Funds"){
recipients[0].inputType = "ONLY_NONDENOMINATED";
recipients[0].inputType = "ONLY_DENOMINATED";
funds = "Using <b>Anonymous Funds</b>";
} else if(ui->inputType->currentText() == "Use Non-Anonymous Funds"){
recipients[0].inputType = "ONLY_DENOMINATED";
recipients[0].inputType = "ONLY_NONDENOMINATED";
funds = "Using <b>NON-ANONYMOUS Funds</b>";
} else {
recipients[0].inputType = "ALL_COINS";

View File

@ -1466,8 +1466,10 @@ bool CWallet::CreateTransaction(std::vector<pair<CScript, int64> >& vecSend,
int64 nValueIn = 0;
if (!SelectCoins(nTotalValue, setCoins, nValueIn, coinControl, coin_type))
{
if(coin_type == ALL_COINS || coin_type == ONLY_NONDENOMINATED)
if(coin_type == ALL_COINS)
strFailReason = _("Insufficient funds");
else if (coin_type == ONLY_NONDENOMINATED)
strFailReason = _("Unable to locate enough Darksend non-denominated funds for this transaction");
else
strFailReason = _("Unable to locate enough Darksend denominated funds for this transaction");