diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-30 21:29:20 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-30 21:29:20 +0200 |
commit | 64f125f3539cf7faf6a1a259181299225072f0fe (patch) | |
tree | c5992de36cf70810da9d667e514b17fe8f4be40c /src/qt/addresstablemodel.cpp | |
parent | 8b040f812af19aff3d3f408a604c17851ac3bf51 (diff) |
Address book: show unlabeled addresses as (no label)
Diffstat (limited to 'src/qt/addresstablemodel.cpp')
-rw-r--r-- | src/qt/addresstablemodel.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp index ecf6f3f3d5..2550076408 100644 --- a/src/qt/addresstablemodel.cpp +++ b/src/qt/addresstablemodel.cpp @@ -114,7 +114,14 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const switch(index.column()) { case Label: - return rec->label; + if(rec->label.isEmpty()) + { + return tr("(no label)"); + } + else + { + return rec->label; + } case Address: return rec->address; case IsDefaultAddress: |