mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-20 04:36:08 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user