diff options
| author | Jonas Schnelli <[email protected]> | 2018-05-18 14:34:53 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-05-19 11:24:40 +0200 |
| commit | 2885c131b6b8ec1140e02ed8f2933c2ffbf41fd1 (patch) | |
| tree | b27311c1c58e8c2698ff262f263fd41d12fb0de8 /src/qt/rpcconsole.cpp | |
| parent | Merge #13265: wallet: Exit SyncMetaData if there are no transactions to sync (diff) | |
| download | discoin-2885c131b6b8ec1140e02ed8f2933c2ffbf41fd1.tar.xz discoin-2885c131b6b8ec1140e02ed8f2933c2ffbf41fd1.zip | |
Qt: use [default wallet] as name for wallet with no name
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 4032729a8..85e3586d6 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -702,7 +702,8 @@ 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); + QString display_name = name.isEmpty() ? "["+tr("default wallet")+"]" : name; + 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) ui->WalletSelector->setCurrentIndex(1); |