diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-08-30 05:44:52 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-08-30 05:44:52 -0700 |
commit | 329de9bb64755fa6fd798a02df0fa6a494864c43 (patch) | |
tree | 897ab0a5cf693ea6b56d1991a8fab72ff2164d9b /src/qt | |
parent | df6c5433e7b6f976e65b5e283292d099b0a13e49 (diff) | |
parent | 9d2fee17e08fce89e46f4502fd28e974e81c19a1 (diff) |
Merge pull request #2955 from laanwj/2013_08_htmlescape
qt: Use GUIUtil::HtmlEscape to escape HTML
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/sendcoinsdialog.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index e3fec61046..df3ff5c9a9 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -98,20 +98,12 @@ void SendCoinsDialog::on_sendButton_clicked() if (rcp.authenticatedMerchant.isEmpty()) { QString address = rcp.address; -#if QT_VERSION < 0x050000 - QString to = Qt::escape(rcp.label); -#else - QString to = rcp.label.toHtmlEscaped(); -#endif + QString to = GUIUtil::HtmlEscape(rcp.label); formatted.append(tr("<b>%1</b> to %2 (%3)").arg(amount, to, address)); } else { -#if QT_VERSION < 0x050000 - QString merchant = Qt::escape(rcp.authenticatedMerchant); -#else - QString merchant = rcp.authenticatedMerchant.toHtmlEscaped(); -#endif + QString merchant = GUIUtil::HtmlEscape(rcp.authenticatedMerchant); formatted.append(tr("<b>%1</b> to %2").arg(amount, merchant)); } } |