Skip to content

Instantly share code, notes, and snippets.

@marsmensch
Forked from anonymous/addressbookpage.patch
Created September 7, 2016 07:58
Show Gist options
  • Save marsmensch/0b8e077811c33dcd4ad7428fd479abc8 to your computer and use it in GitHub Desktop.
Save marsmensch/0b8e077811c33dcd4ad7428fd479abc8 to your computer and use it in GitHub Desktop.
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 36193fe..5468058 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -135,7 +135,7 @@ void AddressBookPage::setModel(AddressTableModel *model)
// Set column widths
ui->tableView->horizontalHeader()->resizeSection(
AddressTableModel::Address, 320);
- ui->tableView->horizontalHeader()->setResizeMode(
+ ui->tableView->horizontalHeader()->setSectionResizeMode(
AddressTableModel::Label, QHeaderView::Stretch);
connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
diff --git a/src/qt/sendmessagesdialog.cpp b/src/qt/sendmessagesdialog.cpp
index 1d83368..4ee4b62 100644
--- a/src/qt/sendmessagesdialog.cpp
+++ b/src/qt/sendmessagesdialog.cpp
@@ -155,7 +155,7 @@ void SendMessagesDialog::on_sendButton_clicked()
QStringList formatted;
foreach(const SendMessagesRecipient &rcp, recipients)
{
- formatted.append(tr("<b>%1</b> to %2 (%3)").arg(rcp.message, Qt::escape(rcp.label), rcp.address));
+ formatted.append(tr("<b>%1</b> to %2 (%3)").arg(rcp.message, QString(rcp.label).toHtmlEscaped(), rcp.address));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment