Commit d3b5e13d authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Reset d->mousePressPos correctly in mousePress after popup exec

BUGS: 363776
parent 506e51d4
...@@ -2280,6 +2280,9 @@ void PageView::mousePressEvent( QMouseEvent * e ) ...@@ -2280,6 +2280,9 @@ void PageView::mousePressEvent( QMouseEvent * e )
this, &PageView::openAnnotationWindow ); this, &PageView::openAnnotationWindow );
popup.exec( e->globalPos() ); 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();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment