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/bitcoingui.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/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 55eba60bcd..2c53962d29 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -676,7 +676,7 @@ void BitcoinGUI::addWallet(WalletModel* walletModel) { if (!walletFrame) return; - WalletView* wallet_view = new WalletView(platformStyle, walletFrame); + WalletView* wallet_view = new WalletView(walletModel, platformStyle, walletFrame); if (!walletFrame->addWallet(walletModel, wallet_view)) return; rpcConsole->addWallet(walletModel); |