From 3172f77ecb720d462a2fa6b5e78f8460ce2c9cfe Mon Sep 17 00:00:00 2001 From: fsb4000 Date: Tue, 18 Nov 2014 02:53:07 +0600 Subject: [PATCH] fix bug "refresh minting tab" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Вроде исправил баг "что если транзакция находит блок, то она всё равно остаётся во вкладке PoS в списке транзакций(до следующего перезапуска клиента)." --- src/qt/mintingtablemodel.cpp | 1 + src/wallet.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/qt/mintingtablemodel.cpp b/src/qt/mintingtablemodel.cpp index 4973480..a6ab89b 100644 --- a/src/qt/mintingtablemodel.cpp +++ b/src/qt/mintingtablemodel.cpp @@ -235,6 +235,7 @@ void MintingTableModel::update() if(!updated.empty()) { priv->updateWallet(updated); + priv->refreshWallet(); } } diff --git a/src/wallet.cpp b/src/wallet.cpp index 3aed377..08d269d 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -2721,8 +2721,10 @@ void CWallet::UpdatedTransaction(const uint256 &hashTx) // Only notify UI if this transaction is in this wallet map::const_iterator mi = mapWallet.find(hashTx); if (mi != mapWallet.end()) + { NotifyTransactionChanged(this, hashTx, CT_UPDATED); - vMintingWalletUpdated.push_back(hashTx); + vMintingWalletUpdated.push_back(hashTx); + } } } -- 1.7.1