Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 679 Lines • ▼ Show 20 Lines | for (WalletModel *wallet_model : m_wallet_controller->getOpenWallets()) { | ||||
addWallet(wallet_model); | addWallet(wallet_model); | ||||
} | } | ||||
} | } | ||||
void BitcoinGUI::addWallet(WalletModel *walletModel) { | void BitcoinGUI::addWallet(WalletModel *walletModel) { | ||||
if (!walletFrame) { | if (!walletFrame) { | ||||
return; | return; | ||||
} | } | ||||
if (!walletFrame->addWallet(walletModel)) { | |||||
return; | |||||
} | |||||
const QString display_name = walletModel->getDisplayName(); | const QString display_name = walletModel->getDisplayName(); | ||||
setWalletActionsEnabled(true); | setWalletActionsEnabled(true); | ||||
rpcConsole->addWallet(walletModel); | rpcConsole->addWallet(walletModel); | ||||
walletFrame->addWallet(walletModel); | |||||
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel)); | m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel)); | ||||
if (m_wallet_selector->count() == 2) { | if (m_wallet_selector->count() == 2) { | ||||
m_wallet_selector_label_action->setVisible(true); | m_wallet_selector_label_action->setVisible(true); | ||||
m_wallet_selector_action->setVisible(true); | m_wallet_selector_action->setVisible(true); | ||||
} | } | ||||
} | } | ||||
void BitcoinGUI::removeWallet(WalletModel *walletModel) { | void BitcoinGUI::removeWallet(WalletModel *walletModel) { | ||||
▲ Show 20 Lines • Show All 860 Lines • Show Last 20 Lines |