diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-04-11 14:21:15 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-14 15:11:28 -0400 |
commit | 760d9480edd448a0ccac7d13739e46478bb79c54 (patch) | |
tree | f58a942368d13c67b7b054e3f1fad9f7a68c80b2 /src | |
parent | 06de079091d749ef43819fec2870f83971df8650 (diff) | |
download | bitcoin-760d9480edd448a0ccac7d13739e46478bb79c54.tar.xz |
removed (no label) string if we have NO label
(partial of 9e0dba8c17eb6507083b4d7602541c25f1fd7f38)
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/addressbookpage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp index 76aa87b134..387043ae2b 100644 --- a/src/qt/addressbookpage.cpp +++ b/src/qt/addressbookpage.cpp @@ -308,8 +308,8 @@ void AddressBookPage::on_showQRCode_clicked() 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(); |