Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Update guiutil.cpp #3486

wants to merge 1 commit into from

Conversation

awoland
Copy link

@awoland awoland commented Jan 4, 2014

Fix old bug with tooltip.startsWith("") and HtmlEscape issue...

Fix old bug with tooltip.startsWith("<qt>") and HtmlEscape issue...
@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/d3c6a89b54278fce83969f70d344d488aff188af for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

@laanwj
Copy link
Member

laanwj commented Jan 4, 2014

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))
Copy link
Member

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))

Copy link
Author

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.

@laanwj laanwj closed this in 17b409b Jan 23, 2014
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Feb 12, 2014
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.
pooler pushed a commit to litecoin-project/litecoin that referenced this pull request Mar 26, 2014
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.

Rebased-from: 90a2868 0.8.x
wtogami pushed a commit to litecoin-project/litecoin that referenced this pull request Mar 27, 2014
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.

Rebased-from: 90a2868 0.8.x
wtogami pushed a commit to litecoin-project/litecoin that referenced this pull request Apr 4, 2014
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.

Rebased-from: 90a2868 0.8.x
MathyV pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request May 9, 2014
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.

Rebased-from: 90a2868 0.8.x
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Dec 18, 2018
Alternative implementation. Thanks to @awoland for the original.
Fixes bitcoin#3486.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants