From df7ca74b489471ba275660815fc668544b5899bf Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 22 Aug 2008 14:07:37 +0000 Subject: [PATCH] skip the widget mouse move event when the is no item under the mouse, or not even a previously selected one svn path=/trunk/KDE/kdegraphics/okular/; revision=850901 --- ui/thumbnaillist.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/thumbnaillist.cpp b/ui/thumbnaillist.cpp index 67ff91cff..bae9d83eb 100644 --- a/ui/thumbnaillist.cpp +++ b/ui/thumbnaillist.cpp @@ -709,6 +709,9 @@ void ThumbnailListPrivate::mouseMoveEvent( QMouseEvent * e ) return e->ignore(); ThumbnailWidget* theItem = item ? item : mouseGrabItem; + // no item under the mouse or previously selected + if ( !theItem ) + return e->ignore(); QRect r = theItem->rect(); int margin = ThumbnailWidget::margin(); QPoint p = e->pos() - theItem->pos();