Do not release the annotation if we release the middle button

remotes/origin/Applications/15.04
Albert Astals Cid 11 years ago
parent 9c98ac0f8b
commit ded1e5486d
  1. 7
      ui/pageview.cpp

@ -2274,7 +2274,10 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
d->leftClickTimer.stop();
if ( d->mouseAnn )
const bool leftButton = e->button() == Qt::LeftButton;
const bool rightButton = e->button() == Qt::RightButton;
if ( d->mouseAnn && leftButton )
{
// Just finished to move the annotation
d->mouseAnn->setFlags( d->mouseAnn->flags() & ~Okular::Annotation::BeingMoved );
@ -2316,8 +2319,6 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
return;
}
bool leftButton = e->button() == Qt::LeftButton;
bool rightButton = e->button() == Qt::RightButton;
switch ( d->mouseMode )
{
case Okular::Settings::EnumMouseMode::Browse:{

Loading…
Cancel
Save