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();