From 23d1ff2c783c18cbbb02d01ebe5a151805bd64c8 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 25 May 2021 19:34:23 +0200 Subject: [PATCH] TickerWidget: fix balance --- src/widgets/TickerWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/TickerWidget.cpp b/src/widgets/TickerWidget.cpp index 2e11d367..d8458ff4 100644 --- a/src/widgets/TickerWidget.cpp +++ b/src/widgets/TickerWidget.cpp @@ -68,7 +68,7 @@ BalanceTickerWidget::BalanceTickerWidget(QWidget *parent, QSharedPointerwallet->balanceAll() : m_ctx->wallet->balanceAll()) / constants::cdiv; + double balance = (m_totalBalance ? m_ctx->wallet->balanceAll() : m_ctx->wallet->balance()) / constants::cdiv; QString fiatCurrency = config()->get(Config::preferredFiatCurrency).toString(); double balanceFiatAmount = appData()->prices.convert("XMR", fiatCurrency, balance); if (balanceFiatAmount < 0)