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
remotes/origin/old/work/tiff-improvements
Pino Toscano 18 years ago
parent 670fd6fc6e
commit df7ca74b48
  1. 3
      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();

Loading…
Cancel
Save