Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 683 Lines • ▼ Show 20 Lines | void BitcoinGUI::setWalletController(WalletController *wallet_controller) { | ||||
m_open_wallet_action->setEnabled(true); | m_open_wallet_action->setEnabled(true); | ||||
m_open_wallet_action->setMenu(m_open_wallet_menu); | m_open_wallet_action->setMenu(m_open_wallet_menu); | ||||
connect(wallet_controller, &WalletController::walletAdded, this, | connect(wallet_controller, &WalletController::walletAdded, this, | ||||
&BitcoinGUI::addWallet); | &BitcoinGUI::addWallet); | ||||
connect(wallet_controller, &WalletController::walletRemoved, this, | connect(wallet_controller, &WalletController::walletRemoved, this, | ||||
&BitcoinGUI::removeWallet); | &BitcoinGUI::removeWallet); | ||||
for (WalletModel *wallet_model : m_wallet_controller->getWallets()) { | 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; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 855 Lines • Show Last 20 Lines |