Address book: show unlabeled addresses as (no label)

This commit is contained in:
Wladimir J. van der Laan 2011-06-30 21:29:20 +02:00
parent 8b040f812a
commit 64f125f353

View File

@ -114,7 +114,14 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const
switch(index.column()) switch(index.column())
{ {
case Label: case Label:
if(rec->label.isEmpty())
{
return tr("(no label)");
}
else
{
return rec->label; return rec->label;
}
case Address: case Address:
return rec->address; return rec->address;
case IsDefaultAddress: case IsDefaultAddress: