diff options
| author | cryptochangements34 <bevanoffr@gmail.com> | 2018-03-15 23:22:45 -0400 |
|---|---|---|
| committer | cryptochangements34 <bevanoffr@gmail.com> | 2018-03-15 23:22:45 -0400 |
| commit | 833f9fcfe959cdadb33fae2aa4af0fe5d6f847f6 (patch) | |
| tree | 00662ff6b9623cbeeb57238a9bd6803d5163a711 | |
| parent | e9f41e405f1f75533ef6e9d5adc76ba41dd29e8c (diff) | |
| download | monzero-core-833f9fcfe959cdadb33fae2aa4af0fe5d6f847f6.tar.gz monzero-core-833f9fcfe959cdadb33fae2aa4af0fe5d6f847f6.tar.xz monzero-core-833f9fcfe959cdadb33fae2aa4af0fe5d6f847f6.zip | |
show '<Not set>' for empty wallet description
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index cbb174e1a..0a2cc22b4 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -6449,9 +6449,13 @@ bool simple_wallet::wallet_info(const std::vector<std::string> &args) { bool ready; uint32_t threshold, total; - + std::string description = m_wallet->get_description(); + if (description.empty()) + { + description = "<Not set>"; + } message_writer() << tr("Filename: ") << m_wallet->get_wallet_file(); - message_writer() << tr("Description: ") << m_wallet->get_description(); + message_writer() << tr("Description: ") << description; message_writer() << tr("Address: ") << m_wallet->get_account().get_public_address_str(m_wallet->nettype()); std::string type; if (m_wallet->watch_only()) |
