mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 19:10:40 +01:00
qt: Fix regression in TransactionTableModel
Since #17993 a crash is possible on exit. Co-authored-by: Russell Yanofsky <russ@yanofsky.org>
This commit is contained in:
@@ -234,6 +234,7 @@ void TransactionRecord::updateStatus(const interfaces::WalletTxStatus& wtx, cons
|
||||
|
||||
bool TransactionRecord::statusUpdateNeeded(const uint256& block_hash) const
|
||||
{
|
||||
assert(!block_hash.IsNull());
|
||||
return status.m_cur_block_hash != block_hash || status.needsUpdate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user