From 36acf7e57a625b811e1dd1fc362ab4a806e5e320 Mon Sep 17 00:00:00 2001 From: vertoe Date: Thu, 15 Jan 2015 12:07:00 +0100 Subject: [PATCH] Use display unit instead of hardcoded DRK for darksend settings --- src/qt/overviewpage.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index be095a4d5..7b8937c65 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -308,10 +308,14 @@ void OverviewPage::darkSendStatus() { updateDarksendProgress(); - std::ostringstream convert2; - convert2 << nAnonymizeDarkcoinAmount << " DRK / " << nDarksendRounds << " Rounds"; - QString s2(convert2.str().c_str()); - ui->labelAmountRounds->setText(s2); + QString strSettings(" Rounds"); + strSettings.prepend(QString::number(nDarksendRounds)).prepend(" / "); + strSettings.prepend(BitcoinUnits::formatWithUnit( + walletModel->getOptionsModel()->getDisplayUnit(), + nAnonymizeDarkcoinAmount * COIN) + ); + + ui->labelAmountRounds->setText(strSettings); } if(!fEnableDarksend) {