aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addressbookpage.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-04-11 14:21:15 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-04-12 20:34:04 +0200
commit9e0dba8c17eb6507083b4d7602541c25f1fd7f38 (patch)
tree3847cdc646c91a4dc0d0131323ad63ac4d795fcb /src/qt/addressbookpage.cpp
parent460b66b14b80a55279d837c91aff1f1c3ca60d7f (diff)
fixed amount part of URI in QR-Codes / removed (no label) string if we have NO label / coding style updates / removed an unused variable
Diffstat (limited to 'src/qt/addressbookpage.cpp')
-rw-r--r--src/qt/addressbookpage.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 88212835de..f9cca13a1a 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -310,16 +310,14 @@ void AddressBookPage::on_showQRCode_clicked()
QTableView *table = ui->tableView;
QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
-
- QRCodeDialog *d;
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);
+ title = QString("<< %1 >>").arg(address);
- QRCodeDialog *d = new QRCodeDialog(title, address, label, tab == ReceivingTab, this);
- d->show();
+ QRCodeDialog *dialog = new QRCodeDialog(title, address, label, tab == ReceivingTab, this);
+ dialog->show();
}
#endif
}