diff options
| author | Luke Dashjr <[email protected]> | 2017-10-12 07:22:48 +0000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-03-26 18:40:26 +0700 |
| commit | b6d04fc7cc5de3370d2d8255f2b3e43f6bf9c80d (patch) | |
| tree | 1ee0d7aeed7c411ad495a14b52f14ccb162ecc58 /src/qt/rpcconsole.cpp | |
| parent | Qt: When multiple wallets are used, include in notifications the name (diff) | |
| download | discoin-b6d04fc7cc5de3370d2d8255f2b3e43f6bf9c80d.tar.xz discoin-b6d04fc7cc5de3370d2d8255f2b3e43f6bf9c80d.zip | |
Qt: Get wallet name from WalletModel rather than passing it around
Diffstat (limited to 'src/qt/rpcconsole.cpp')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 5e72b7b62..f1f9f6fc4 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -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()) { |