mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Address book: show unlabeled addresses as (no label)
This commit is contained in:
parent
8b040f812a
commit
64f125f353
1 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue