Reset d->mousePressPos correctly in mousePress after popup exec

BUGS: 363776
This commit is contained in:
Albert Astals Cid 2017-03-09 00:37:03 +01:00
parent 506e51d461
commit d3b5e13dad

View file

@ -2280,6 +2280,9 @@ void PageView::mousePressEvent( QMouseEvent * e )
this, &PageView::openAnnotationWindow );
popup.exec( e->globalPos() );
// Since ↑ spins its own event loop we won't get the mouse release event
// so reset mousePressPos here
d->mousePressPos = QPoint();
}
}
}