diff options
| author | João Barbosa <[email protected]> | 2019-09-26 21:43:44 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2019-10-26 14:55:31 +0100 |
| commit | 6d6a7a8403ae923f189812edebdd95761de0e7f2 (patch) | |
| tree | 0740bbb136767b7ca8896900bd13abcd4fb1e29c /src/httpserver.cpp | |
| parent | Drop signal CClientUIInterface::LoadWallet (diff) | |
| download | discoin-6d6a7a8403ae923f189812edebdd95761de0e7f2.tar.xz discoin-6d6a7a8403ae923f189812edebdd95761de0e7f2.zip | |
gui: Fix duplicate wallet showing up
The slot BitcoinGUI::addWallet can be invoked twice for the same
WalletModel due to a concurrent wallet being loaded after the first `connect()`:
```cpp
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {
addWallet(wallet_model);
```
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions