-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update guiutil.cpp #3486
Update guiutil.cpp #3486
Conversation
Fix old bug with tooltip.startsWith("<qt>") and HtmlEscape issue...
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/d3c6a89b54278fce83969f70d344d488aff188af for binaries and test log. |
What issue does this fix? |
@@ -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>") && !tooltip.startsWith("<qt/>") && !Qt::mightBeRichText(tooltip)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be abbreviated to
if(tooltip.size() > size_threshold && !tooltip.startsWith("<qt") && !Qt::mightBeRichText(tooltip))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it would be the most correct option.
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486.
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486. Rebased-from: 90a2868 0.8.x
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486. Rebased-from: 90a2868 0.8.x
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486. Rebased-from: 90a2868 0.8.x
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486. Rebased-from: 90a2868 0.8.x
Alternative implementation. Thanks to @awoland for the original. Fixes bitcoin#3486.
Fix old bug with tooltip.startsWith("") and HtmlEscape issue...