mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-18 16:42:54 +01:00
Wallet: Replace pwalletMain with a vector of wallet pointers
This commit is contained in:
@@ -474,9 +474,10 @@ void BitcoinApplication::initializeResult(bool success)
|
||||
window->setClientModel(clientModel);
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
if(pwalletMain)
|
||||
// TODO: Expose secondary wallets
|
||||
if (!vpwallets.empty())
|
||||
{
|
||||
walletModel = new WalletModel(platformStyle, pwalletMain, optionsModel);
|
||||
walletModel = new WalletModel(platformStyle, vpwallets[0], optionsModel);
|
||||
|
||||
window->addWallet(BitcoinGUI::DEFAULT_WALLET, walletModel);
|
||||
window->setCurrentWallet(BitcoinGUI::DEFAULT_WALLET);
|
||||
|
||||
Reference in New Issue
Block a user