From: Philip Kaufmann Date: Wed, 11 Apr 2012 12:21:15 +0000 (+0200) Subject: removed (no label) string if we have NO label X-Git-Tag: v0.4.0-unstable~129^2~1^2~18^2~23 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=760d9480edd448a0ccac7d13739e46478bb79c54 removed (no label) string if we have NO label (partial of 9e0dba8c17eb6507083b4d7602541c25f1fd7f38) --- diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp index 76aa87b..387043a 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();