From bd4cb5aef1b7c73906e2acca7f46bc33b63ab171 Mon Sep 17 00:00:00 2001 From: Denio Date: Sun, 8 Dec 2019 12:42:52 +0100 Subject: [PATCH] fix BlockHeight format --- src/controller.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index cdd071c..5f3b7ec 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -189,11 +189,11 @@ void Controller::getInfoThenRefresh(bool force) { ui->longestchain->setText(QLocale(QLocale::German).toString(longestchain)); ui->difficulty->setText(QLocale(QLocale::German).toString(difficulty));} - else + else { ui->blockHeight->setText(QLocale(QLocale::English).toString(curBlock)); ui->last_notarized->setText(QLocale(QLocale::English).toString(notarized)); ui->longestchain->setText(QLocale(QLocale::English).toString(longestchain)); - ui->difficulty->setText(QLocale(QLocale::English).toString(difficulty)); + ui->difficulty->setText(QLocale(QLocale::English).toString(difficulty));} ui->halvingTime->setText( QString::number(blocks_until_halving) % " blocks, " % QString::fromStdString(halving_days) % " days" ); @@ -272,7 +272,7 @@ void Controller::getInfoThenRefresh(bool force) { double price = Settings::getInstance()->getCHFPrice(); double volume = Settings::getInstance()->getCHFVolume(); double cap = Settings::getInstance()->getCHFCAP(); - main->statusLabel->setText(" HUSH/CHF= " + (QLocale(QLocale::German).toString(price,'f', 2))+ "CHF"); + main->statusLabel->setText(" HUSH/CHF= " + (QLocale(QLocale::German).toString(price,'f', 2))+ " CHF"); ui->volumeExchange->setText(QLocale(QLocale::German).toString(volume,'f', 2)+ " CHF"); ui->marketcapTab->setText(QLocale(QLocale::German).toString(cap,'f', 2)+ " CHF"); @@ -340,10 +340,10 @@ void Controller::getInfoThenRefresh(bool force) { ui->supply_zaddr->setText((QLocale(QLocale::German).toString(zfunds))); ui->supply_total->setText((QLocale(QLocale::German).toString(total)));} - else + else{ ui->supply_taddr->setText((QLocale(QLocale::English).toString(supply))); ui->supply_zaddr->setText((QLocale(QLocale::English).toString(zfunds))); - ui->supply_total->setText((QLocale(QLocale::English).toString(total))); + ui->supply_total->setText((QLocale(QLocale::English).toString(total)));} });