mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-17 08:02:35 +02:00
Qt: Get wallet name from WalletModel rather than passing it around
This commit is contained in:
committed by
Jonas Schnelli
parent
12d8d2681e
commit
b6d04fc7cc
@ -688,8 +688,9 @@ void RPCConsole::setClientModel(ClientModel *model)
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
void RPCConsole::addWallet(const QString name, WalletModel * const walletModel)
|
||||
void RPCConsole::addWallet(WalletModel * const walletModel)
|
||||
{
|
||||
const QString name = walletModel->getWalletName();
|
||||
// use name for text and internal data object (to allow to move to a wallet id later)
|
||||
ui->WalletSelector->addItem(name, name);
|
||||
if (ui->WalletSelector->count() == 2 && !isVisible()) {
|
||||
|
Reference in New Issue
Block a user