Mercurial > hg > bitcoin
changeset 2884:0c8dc6ee0364 draft
removed (no label) string if we have NO label
(partial of 9e0dba8c17eb6507083b4d7602541c25f1fd7f38)
author | Philip Kaufmann <phil.kaufmann@t-online.de> |
---|---|
date | Wed, 11 Apr 2012 14:21:15 +0200 |
parents | e669d74eef2a |
children | b6080d41c33b |
files | src/qt/addressbookpage.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/addressbookpage.cpp +++ b/src/qt/addressbookpage.cpp @@ -308,8 +308,8 @@ foreach (QModelIndex index, indexes) { QString address = index.data().toString(), - label = index.sibling(index.row(), 0).data().toString(), - title = QString("%1 << %2 >>").arg(label).arg(address); + label = index.sibling(index.row(), 0).data(Qt::EditRole).toString(), + title = QString("%1%2<< %3 >>").arg(label).arg(label.isEmpty() ? "" : " ").arg(address); QRCodeDialog *d = new QRCodeDialog(title, address, label, tab == ReceivingTab, this); d->show();