Skip to content

Commit 1c8fe0b

Browse files
committed
ui: Remove unnecessary variable fFirstWallet
1 parent 4cfe17c commit 1c8fe0b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/qt/bitcoin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,13 @@ void BitcoinApplication::initializeResult(bool success)
465465
window->setClientModel(clientModel);
466466

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

473472
window->addWallet(walletModel);
474-
if (fFirstWallet) {
473+
if (m_wallet_models.empty()) {
475474
window->setCurrentWallet(walletModel->getWalletName());
476-
fFirstWallet = false;
477475
}
478476

479477
connect(walletModel, SIGNAL(coinsSent(WalletModel*,SendCoinsRecipient,QByteArray)),

0 commit comments

Comments
 (0)