aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-10-12 07:22:48 +0000
committerJonas Schnelli <dev@jonasschnelli.ch>2018-03-26 18:40:26 +0700
commitb6d04fc7cc5de3370d2d8255f2b3e43f6bf9c80d (patch)
tree1ee0d7aeed7c411ad495a14b52f14ccb162ecc58 /src/qt/rpcconsole.cpp
parent12d8d2681e34a191f5d82f15448f8c4c9a14f6d0 (diff)
downloadbitcoin-b6d04fc7cc5de3370d2d8255f2b3e43f6bf9c80d.tar.xz
Qt: Get wallet name from WalletModel rather than passing it around
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 5e72b7b62e..f1f9f6fc4c 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()) {