diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 256aec68f65d..809b15a40af1 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -1555,7 +1555,7 @@ void BitcoinGUI::updateWidth() int nWidthWidestButton{0}; int nButtonsVisible{0}; for (QAbstractButton* button : tabGroup->buttons()) { - if (!button->isEnabled() || !button->isVisible()) { + if (!button->isVisible()) { continue; } QFontMetrics fm(button->font()); diff --git a/src/qt/masternodemodel.cpp b/src/qt/masternodemodel.cpp index 39477c1f1795..b2f31aebe5e1 100644 --- a/src/qt/masternodemodel.cpp +++ b/src/qt/masternodemodel.cpp @@ -291,7 +291,7 @@ QVariant MasternodeModel::data(const QModelIndex& index, int role) const if (auto ban_height = entry->poseBanHeight(); ban_height && *ban_height > 0) { return m_current_height - *ban_height; } - return 0; // Unknown ban time, treat as freshly banned + return 1; // Unknown ban time, still positive so filter works } else { // Active nodes use negative values int32_t active_height = entry->registeredHeight(); diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 821781c9f077..067b5edb682a 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -19,8 +19,10 @@ #include #include #include +#include #include #include +#include