Skip to content

Commit 9735b07

Browse files
hebastoryanofsky
andcommitted
qt: Avoid spurious updateStatus() calls during shutdown
Co-authored-by: Russell Yanofsky <[email protected]>
1 parent cd3b6d0 commit 9735b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/transactiontablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class TransactionTablePriv
192192
interfaces::WalletTxStatus wtx;
193193
int numBlocks;
194194
int64_t block_time;
195-
if (rec->statusUpdateNeeded(cur_block_hash) && wallet.tryGetTxStatus(rec->hash, wtx, numBlocks, block_time)) {
195+
if (!cur_block_hash.IsNull() && rec->statusUpdateNeeded(cur_block_hash) && wallet.tryGetTxStatus(rec->hash, wtx, numBlocks, block_time)) {
196196
rec->updateStatus(wtx, cur_block_hash, numBlocks, block_time);
197197
}
198198
return rec;

0 commit comments

Comments
 (0)