diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-05-12 12:47:50 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-05-13 09:27:45 +0200 |
| commit | 99fdc1d829a658597f76845094394bdfcb693b51 (patch) | |
| tree | ac50b2ef75fa99cf5d18812d740f715be819d30b /src/qt/guiutil.cpp | |
| parent | Merge pull request #1268 from Diapolo/transactiondialog (diff) | |
| download | discoin-99fdc1d829a658597f76845094394bdfcb693b51.tar.xz discoin-99fdc1d829a658597f76845094394bdfcb693b51.zip | |
Prevent tooltip filter from ever causing infinite loops
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 67cbc51bd..32bce8833 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -256,7 +256,7 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) { QWidget *widget = static_cast<QWidget*>(obj); QString tooltip = widget->toolTip(); - if(!Qt::mightBeRichText(tooltip) && tooltip.size() > size_threshold) + if(tooltip.size() > size_threshold && !tooltip.startsWith("<qt/>") && !Qt::mightBeRichText(tooltip)) { // Prefix <qt/> to make sure Qt detects this as rich text // Escape the current message as HTML and replace \n by <br> |