send confirmation dialog box should display correct smallest denom (#1329)

This commit is contained in:
UdjinM6 2017-02-12 01:04:08 +04:00 committed by GitHub
parent f08ae49904
commit 6483e6d06f

View File

@ -23,6 +23,8 @@
#include "txmempool.h" #include "txmempool.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include "darksend.h"
#include <QMessageBox> #include <QMessageBox>
#include <QScrollBar> #include <QScrollBar>
#include <QSettings> #include <QSettings>
@ -260,7 +262,7 @@ void SendCoinsDialog::on_sendButton_clicked()
strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>"; strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>";
QString strNearestAmount( QString strNearestAmount(
BitcoinUnits::formatWithUnit( BitcoinUnits::formatWithUnit(
model->getOptionsModel()->getDisplayUnit(), 0.1 * COIN)); model->getOptionsModel()->getDisplayUnit(), vecPrivateSendDenominations.back()));
strFee = QString(tr( strFee = QString(tr(
"(privatesend requires this amount to be rounded up to the nearest %1)." "(privatesend requires this amount to be rounded up to the nearest %1)."
).arg(strNearestAmount)); ).arg(strNearestAmount));