From 6a731e011c5360b45721677b49b6d52b1cb4df32 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Tue, 5 Aug 2014 06:37:24 -0700 Subject: [PATCH] reversed ds box --- src/qt/sendcoinsdialog.cpp | 4 ++-- src/wallet.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 967c1ec664..6155edba3f 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -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 Anonymous Funds"; } else if(ui->inputType->currentText() == "Use Non-Anonymous Funds"){ - recipients[0].inputType = "ONLY_DENOMINATED"; + recipients[0].inputType = "ONLY_NONDENOMINATED"; funds = "Using NON-ANONYMOUS Funds"; } else { recipients[0].inputType = "ALL_COINS"; diff --git a/src/wallet.cpp b/src/wallet.cpp index 25ba0cab30..b801b4fbfd 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1466,8 +1466,10 @@ bool CWallet::CreateTransaction(std::vector >& 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");