aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-23 12:57:59 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-23 12:58:06 +0100
commit22650b7d4051e3302bf03173bbb4b0d4f1d0bf4e (patch)
treefa380e69361ce9ed73100ff6722bf596c1c95824
parent8b2cf12b538fdf062b79c03f76626b541bfb66b7 (diff)
parent17b409b2e6c7d0585a8a5008bb8b522f7cf768b0 (diff)
Merge pull request #3577
17b409b qt: Fix richtext detection hang issue on very old Qt versions (Wladimir J. van der Laan)
-rw-r--r--src/qt/guiutil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 2d8a6afe21..a69ea28fdf 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -361,11 +361,11 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt)
{
QWidget *widget = static_cast<QWidget*>(obj);
QString tooltip = widget->toolTip();
- if(tooltip.size() > size_threshold && !tooltip.startsWith("<qt/>") && !Qt::mightBeRichText(tooltip))
+ if(tooltip.size() > size_threshold && !tooltip.startsWith("<qt") && !Qt::mightBeRichText(tooltip))
{
- // Prefix <qt/> to make sure Qt detects this as rich text
+ // Envelop with <qt></qt> to make sure Qt detects this as rich text
// Escape the current message as HTML and replace \n by <br>
- tooltip = "<qt/>" + HtmlEscape(tooltip, true);
+ tooltip = "<qt>" + HtmlEscape(tooltip, true) + "</qt>";
widget->setToolTip(tooltip);
return true;
}