check the validity of the iterator before using it
svn path=/trunk/KDE/kdelibs/; revision=884120
This commit is contained in:
parent
9329ce25a2
commit
07c8015ade
@ -306,7 +306,7 @@ void ToolTipManagerPrivate::showToolTip()
|
|||||||
tooltip = tooltips.constFind(currentWidget);
|
tooltip = tooltips.constFind(currentWidget);
|
||||||
//kDebug() << "attempt to make one ... we gots" << tooltip.isEmpty();
|
//kDebug() << "attempt to make one ... we gots" << tooltip.isEmpty();
|
||||||
|
|
||||||
if (tooltip.value().isEmpty()) {
|
if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) {
|
||||||
currentWidget = 0;
|
currentWidget = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user