Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Lines | void BitcoinGUI::setWalletController(WalletController *wallet_controller) { | ||||
connect(wallet_controller, &WalletController::walletRemoved, this, | connect(wallet_controller, &WalletController::walletRemoved, this, | ||||
&BitcoinGUI::removeWallet); | &BitcoinGUI::removeWallet); | ||||
for (WalletModel *wallet_model : m_wallet_controller->getOpenWallets()) { | for (WalletModel *wallet_model : m_wallet_controller->getOpenWallets()) { | ||||
addWallet(wallet_model); | addWallet(wallet_model); | ||||
} | } | ||||
} | } | ||||
WalletController *BitcoinGUI::getWalletController() { | |||||
return m_wallet_controller; | |||||
} | |||||
void BitcoinGUI::addWallet(WalletModel *walletModel) { | void BitcoinGUI::addWallet(WalletModel *walletModel) { | ||||
if (!walletFrame) { | if (!walletFrame) { | ||||
return; | return; | ||||
} | } | ||||
if (!walletFrame->addWallet(walletModel)) { | if (!walletFrame->addWallet(walletModel)) { | ||||
return; | return; | ||||
} | } | ||||
const QString display_name = walletModel->getDisplayName(); | const QString display_name = walletModel->getDisplayName(); | ||||
▲ Show 20 Lines • Show All 894 Lines • Show Last 20 Lines |