From 1c8fe0bf90253f316af138ac8c088ae708ced357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Thu, 26 Apr 2018 17:55:07 +0100 Subject: [PATCH] ui: Remove unnecessary variable fFirstWallet --- src/qt/bitcoin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 917831760..a0f2702d3 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -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)),