diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-07 17:01:16 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-26 16:27:56 +0300 |
commit | 404373bc6ac0589e9e28690c9d09114d626a3dc3 (patch) | |
tree | 88062f7855915e3aa40b05fa13b0f37948cd35c3 /src/qt/walletframe.cpp | |
parent | 774a4f517cf63df345e6a4852cc0b135b0a9ab76 (diff) | |
download | bitcoin-404373bc6ac0589e9e28690c9d09114d626a3dc3.tar.xz |
qt, refactor: Pass WalletModel object to WalletView constructor
An instance of the WalletView class without walletModel data member
being set is invalid. So, it is better to set it in the constructor.
Diffstat (limited to 'src/qt/walletframe.cpp')
-rw-r--r-- | src/qt/walletframe.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index 30c29eb356..d5bde544f7 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -71,7 +71,6 @@ bool WalletFrame::addWallet(WalletModel* walletModel, WalletView* walletView) if (mapWalletViews.count(walletModel) > 0) return false; walletView->setClientModel(clientModel); - walletView->setWalletModel(walletModel); walletView->showOutOfSyncWarning(bOutOfSync); WalletView* current_wallet_view = currentWalletView(); |