mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
ui: Remove unnecessary variable fFirstWallet
This commit is contained in:
parent
4cfe17c338
commit
1c8fe0bf90
1 changed files with 1 additions and 3 deletions
|
@ -465,15 +465,13 @@ void BitcoinApplication::initializeResult(bool success)
|
||||||
window->setClientModel(clientModel);
|
window->setClientModel(clientModel);
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
bool fFirstWallet = true;
|
|
||||||
auto wallets = m_node.getWallets();
|
auto wallets = m_node.getWallets();
|
||||||
for (auto& wallet : wallets) {
|
for (auto& wallet : wallets) {
|
||||||
WalletModel * const walletModel = new WalletModel(std::move(wallet), m_node, platformStyle, optionsModel);
|
WalletModel * const walletModel = new WalletModel(std::move(wallet), m_node, platformStyle, optionsModel);
|
||||||
|
|
||||||
window->addWallet(walletModel);
|
window->addWallet(walletModel);
|
||||||
if (fFirstWallet) {
|
if (m_wallet_models.empty()) {
|
||||||
window->setCurrentWallet(walletModel->getWalletName());
|
window->setCurrentWallet(walletModel->getWalletName());
|
||||||
fFirstWallet = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(walletModel, SIGNAL(coinsSent(WalletModel*,SendCoinsRecipient,QByteArray)),
|
connect(walletModel, SIGNAL(coinsSent(WalletModel*,SendCoinsRecipient,QByteArray)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue