Commit 3cf06605 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Do not show empty tooltip if title attribute contains only spaces.

parent c93c6588
......@@ -500,7 +500,7 @@ bool KHTMLView::event( QEvent* e )
viewportToContents(QPoint(0, 0)), p, r, s);
}
if (!found) {
s = e->getAttribute( ATTR_TITLE ).string();
s = e->getAttribute(ATTR_TITLE).string().trimmed();
r = node->getRect();
}
region |= QRect( contentsToViewport( r.topLeft() ), r.size() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment