From 6ab7bcc4eb89e03faaab1ad46bfe4540f1b1960b Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Tue, 9 Apr 2019 13:30:37 -0400 Subject: [PATCH] Bugfix: GUI: Overview: Fix hiding of immature when balances are zero --- src/qt/overviewpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 2f3f3e5ec6..04235cdc35 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -170,8 +170,8 @@ void OverviewPage::setBalance(const interfaces::WalletBalances& balances) // only show immature (newly mined) balance if it's non-zero, so as not to complicate things // for the non-mining users - bool showImmature = !balances.immature_balance.empty(); - bool showWatchOnlyImmature = !balances.immature_watch_only_balance.empty(); + bool showImmature = !!balances.immature_balance; + bool showWatchOnlyImmature = !!balances.immature_watch_only_balance; // for symmetry reasons also show immature label when the watch-only one is shown ui->labelImmature->setVisible(showImmature || showWatchOnlyImmature);