Skip to content

Commit 407d7c8

Browse files
committed
Merge #18091: Qt: pass clientmodel changes from walletframe to walletviews
2af3e16 Qt: pass clientmodel changes from walletframe to walletviews (Jonas Schnelli) Pull request description: Fixes #18090 We currently don't pass `clientmodel` changes from the `walletframe` to the `walletviews` leading to possible invalid access during shutdown because all walletviews miss the nullifying of the clientmodel. TODO: needs investigation if this is should be backported. ACKs for top commit: laanwj: Good catch, code review ACK 2af3e16 Tree-SHA512: f8c0a114f01deac07fb311112d144f3bfc1c1882dd19e8742b372dd597d7a5d59cd0af99fc50494de2334cad98d6701675317474e40fe8820d04c058aeca1b75
2 parents 0193fd7 + 2af3e16 commit 407d7c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/walletframe.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ WalletFrame::~WalletFrame()
3737
void WalletFrame::setClientModel(ClientModel *_clientModel)
3838
{
3939
this->clientModel = _clientModel;
40+
41+
for (auto i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i) {
42+
i.value()->setClientModel(_clientModel);
43+
}
4044
}
4145

4246
bool WalletFrame::addWallet(WalletModel *walletModel)

0 commit comments

Comments
 (0)