aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-04-26 17:55:07 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-05-16 20:48:48 +0100
commit1c8fe0bf90253f316af138ac8c088ae708ced357 (patch)
tree6ed9adadee9d89f9dbb69b589de7589f52bc86a5 /src
parent4cfe17c3382ba750131cdc8703b2978132822070 (diff)
ui: Remove unnecessary variable fFirstWallet
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 9178317601..a0f2702d39 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)),