Skip to content

Commit

Permalink
ui: Remove unnecessary variable fFirstWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed May 16, 2018
1 parent 4cfe17c commit 1c8fe0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/qt/bitcoin.cpp
Expand Up @@ -465,15 +465,13 @@ void BitcoinApplication::initializeResult(bool success)
window->setClientModel(clientModel);

#ifdef ENABLE_WALLET
bool fFirstWallet = true;
auto wallets = m_node.getWallets();
for (auto& wallet : wallets) {
WalletModel * const walletModel = new WalletModel(std::move(wallet), m_node, platformStyle, optionsModel);

window->addWallet(walletModel);
if (fFirstWallet) {
if (m_wallet_models.empty()) {
window->setCurrentWallet(walletModel->getWalletName());
fFirstWallet = false;
}

connect(walletModel, SIGNAL(coinsSent(WalletModel*,SendCoinsRecipient,QByteArray)),
Expand Down

0 comments on commit 1c8fe0b

Please sign in to comment.