mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Reset d->mousePressPos correctly in mousePress after popup exec
BUGS: 363776
This commit is contained in:
parent
506e51d461
commit
d3b5e13dad
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue