From: awoland Date: Sun, 5 Jan 2014 09:57:35 +0000 (+0300) Subject: Update guiutil.cpp X-Git-Tag: v0.4.4.6-nvc-update1~8^2 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=cd3bd74f7b0d4e9e9f0f3bcd3fb55262406f5097;hp=24c1d28186a58df828818ee4e4db9c32783c2f3d;p=novacoin.git Update guiutil.cpp Fix old bug in GUI with HtmlEscape(tooltip ... --- 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; }