From c2538f201d82a98849a9bbbf36544bf229bcb395 Mon Sep 17 00:00:00 2001 From: Yura Oleksyshyn Date: Thu, 26 Jul 2018 20:36:54 +0300 Subject: [PATCH] Fixed dangling pointer for masternodeListPage. Tweaked UI for watchdog_expired --- src/masternode.cpp | 3 ++- src/qt/walletview.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masternode.cpp b/src/masternode.cpp index dcd9f576f..bc5968b50 100644 --- a/src/masternode.cpp +++ b/src/masternode.cpp @@ -311,8 +311,9 @@ std::string CMasternode::StateToString(int nStateIn) case MASTERNODE_EXPIRED: return "EXPIRED"; case MASTERNODE_OUTPOINT_SPENT: return "OUTPOINT_SPENT"; case MASTERNODE_UPDATE_REQUIRED: return "UPDATE_REQUIRED"; - case MASTERNODE_WATCHDOG_EXPIRED: return "WATCHDOG_EXPIRED"; + //case MASTERNODE_WATCHDOG_EXPIRED: return "WATCHDOG_EXPIRED"; case MASTERNODE_NEW_START_REQUIRED: return "NEW_START_REQUIRED"; + case MASTERNODE_WATCHDOG_EXPIRED: return "ENABLED"; case MASTERNODE_POSE_BAN: return "POSE_BAN"; default: return "UNKNOWN"; } diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp index 0418cf5b5..39fee6922 100644 --- a/src/qt/walletview.cpp +++ b/src/qt/walletview.cpp @@ -147,7 +147,6 @@ void WalletView::setWalletModel(WalletModel *_walletModel) overviewPage->setWalletModel(_walletModel); receiveCoinsPage->setModel(_walletModel); sendCoinsPage->setModel(_walletModel); - masternodeListPage->setWalletModel(_walletModel); tposPage->setWalletModel(_walletModel); QSettings settings; if (settings.value("fShowMasternodesTab").toBool()) {