mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Address book: show unlabeled addresses as (no label)
This commit is contained in:
parent
8b040f812a
commit
64f125f353
@ -114,7 +114,14 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const
|
|||||||
switch(index.column())
|
switch(index.column())
|
||||||
{
|
{
|
||||||
case Label:
|
case Label:
|
||||||
return rec->label;
|
if(rec->label.isEmpty())
|
||||||
|
{
|
||||||
|
return tr("(no label)");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return rec->label;
|
||||||
|
}
|
||||||
case Address:
|
case Address:
|
||||||
return rec->address;
|
return rec->address;
|
||||||
case IsDefaultAddress:
|
case IsDefaultAddress:
|
||||||
|
Loading…
Reference in New Issue
Block a user