@@ -571,10 +571,9 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
571
571
}
572
572
573
573
#ifdef ENABLE_WALLET
574
- bool BitcoinGUI::addWallet (WalletModel * walletModel)
574
+ void BitcoinGUI::addWallet (WalletModel* walletModel)
575
575
{
576
- if (!walletFrame)
577
- return false ;
576
+ if (!walletFrame) return ;
578
577
const QString display_name = walletModel->getDisplayName ();
579
578
setWalletActionsEnabled (true );
580
579
m_wallet_selector->addItem (display_name, QVariant::fromValue (walletModel));
@@ -583,12 +582,12 @@ bool BitcoinGUI::addWallet(WalletModel *walletModel)
583
582
m_wallet_selector_action->setVisible (true );
584
583
}
585
584
rpcConsole->addWallet (walletModel);
586
- return walletFrame->addWallet (walletModel);
585
+ walletFrame->addWallet (walletModel);
587
586
}
588
587
589
- bool BitcoinGUI::removeWallet (WalletModel* walletModel)
588
+ void BitcoinGUI::removeWallet (WalletModel* walletModel)
590
589
{
591
- if (!walletFrame) return false ;
590
+ if (!walletFrame) return ;
592
591
int index = m_wallet_selector->findData (QVariant::fromValue (walletModel));
593
592
m_wallet_selector->removeItem (index);
594
593
if (m_wallet_selector->count () == 0 ) {
@@ -598,20 +597,19 @@ bool BitcoinGUI::removeWallet(WalletModel* walletModel)
598
597
m_wallet_selector_action->setVisible (false );
599
598
}
600
599
rpcConsole->removeWallet (walletModel);
601
- return walletFrame->removeWallet (walletModel);
600
+ walletFrame->removeWallet (walletModel);
602
601
}
603
602
604
- bool BitcoinGUI::setCurrentWallet (WalletModel* wallet_model)
603
+ void BitcoinGUI::setCurrentWallet (WalletModel* wallet_model)
605
604
{
606
- if (!walletFrame)
607
- return false ;
608
- return walletFrame->setCurrentWallet (wallet_model);
605
+ if (!walletFrame) return ;
606
+ walletFrame->setCurrentWallet (wallet_model);
609
607
}
610
608
611
- bool BitcoinGUI::setCurrentWalletBySelectorIndex (int index)
609
+ void BitcoinGUI::setCurrentWalletBySelectorIndex (int index)
612
610
{
613
611
WalletModel* wallet_model = m_wallet_selector->itemData (index).value <WalletModel*>();
614
- return setCurrentWallet (wallet_model);
612
+ setCurrentWallet (wallet_model);
615
613
}
616
614
617
615
void BitcoinGUI::removeAllWallets ()
0 commit comments