diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-09-03 00:27:14 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-09-03 00:27:14 +0300 |
commit | d319c4dae9ed7d59d71b926e677707fce4194d0c (patch) | |
tree | 9edaf41d675ed96010510f673ba779218c6db595 /src/qt/bitcoingui.cpp | |
parent | 92ddc02a16a74e10f24190929f05e2dcf2b55871 (diff) | |
download | bitcoin-d319c4dae9ed7d59d71b926e677707fce4194d0c.tar.xz |
qt, refactor: Replace WalletFrame::addWallet with WalletFrame::addView
No need to pass an instance of the WalletModel class to this method.
Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
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 2c53962d29..862bdd3bfe 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -677,7 +677,7 @@ void BitcoinGUI::addWallet(WalletModel* walletModel) if (!walletFrame) return; WalletView* wallet_view = new WalletView(walletModel, platformStyle, walletFrame); - if (!walletFrame->addWallet(walletModel, wallet_view)) return; + if (!walletFrame->addView(wallet_view)) return; rpcConsole->addWallet(walletModel); if (m_wallet_selector->count() == 0) { |