diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-06-25 22:22:01 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-04 15:22:13 +0000 |
commit | d2a1adffebee86763fafc6f3ed2722f7038654c7 (patch) | |
tree | 01599ba49363bc0cc26775448fe471d2b7156eca /src/qt/rpcconsole.cpp | |
parent | 9c64278e1a723bdc34598d0d83e56f1e74ea39bb (diff) |
qt: Factor out WalletModel::getDisplayName()
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 774a0d78e7..dc1abcbcff 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -700,7 +700,7 @@ 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) - QString display_name = name.isEmpty() ? "["+tr("default wallet")+"]" : name; + const QString display_name = walletModel->getDisplayName(); ui->WalletSelector->addItem(display_name, name); if (ui->WalletSelector->count() == 2 && !isVisible()) { // First wallet added, set to default so long as the window isn't presently visible (and potentially in use) |