From 07c8015adefe189a52c6cf2374aab3882f8c8a8b Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 14 Nov 2008 10:37:56 +0000 Subject: [PATCH] check the validity of the iterator before using it svn path=/trunk/KDE/kdelibs/; revision=884120 --- tooltipmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooltipmanager.cpp b/tooltipmanager.cpp index 267b3b545..913b49c00 100644 --- a/tooltipmanager.cpp +++ b/tooltipmanager.cpp @@ -306,7 +306,7 @@ void ToolTipManagerPrivate::showToolTip() tooltip = tooltips.constFind(currentWidget); //kDebug() << "attempt to make one ... we gots" << tooltip.isEmpty(); - if (tooltip.value().isEmpty()) { + if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) { currentWidget = 0; return; }