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>
This commit is contained in:
Hennadii Stepanov
2021-09-03 00:27:14 +03:00
parent 92ddc02a16
commit d319c4dae9
3 changed files with 6 additions and 6 deletions

View File

@@ -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) {