aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addresstablemodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 21:29:20 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 21:29:20 +0200
commit64f125f3539cf7faf6a1a259181299225072f0fe (patch)
treec5992de36cf70810da9d667e514b17fe8f4be40c /src/qt/addresstablemodel.cpp
parent8b040f812af19aff3d3f408a604c17851ac3bf51 (diff)
Address book: show unlabeled addresses as (no label)
Diffstat (limited to 'src/qt/addresstablemodel.cpp')
-rw-r--r--src/qt/addresstablemodel.cpp9
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: