catch odd case of tooltip not hiding due to unhiding into a widget that is registered but has no tipdata associated with it

patch contributed by 潘卫平
BUG:198061

svn path=/trunk/KDE/kdelibs/; revision=988376
This commit is contained in:
Aaron J. Seigo 2009-06-27 23:17:52 +00:00
parent 5bdb436709
commit 1611d9f38d

View File

@ -353,6 +353,11 @@ void ToolTipManagerPrivate::showToolTip()
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget); QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) { if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) {
if (isShown) {
delayedHide = true;
hideTimer->start(250);
}
return; return;
} }