From cd3bd74f7b0d4e9e9f0f3bcd3fb55262406f5097 Mon Sep 17 00:00:00 2001 From: awoland Date: Sun, 5 Jan 2014 12:57:35 +0300 Subject: [PATCH] Update guiutil.cpp Fix old bug in GUI with HtmlEscape(tooltip ... --- src/qt/guiutil.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index f6ad8ed..ab20bca 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -258,11 +258,11 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) { QWidget *widget = static_cast(obj); QString tooltip = widget->toolTip(); - if(tooltip.size() > size_threshold && !tooltip.startsWith("") && !Qt::mightBeRichText(tooltip)) + if(tooltip.size() > size_threshold && !tooltip.startsWith("") && !Qt::mightBeRichText(tooltip)) { // Prefix to make sure Qt detects this as rich text // Escape the current message as HTML and replace \n by
- tooltip = "" + HtmlEscape(tooltip, true); + tooltip = "" + HtmlEscape(tooltip, true) + ""; widget->setToolTip(tooltip); return true; } -- 1.7.1