Commit 2eae6f9a authored by Enrico Ros's avatar Enrico Ros
Browse files

bits on patch_026 (already on branch)

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424885
parent 70b0a07f
......@@ -1038,11 +1038,14 @@ void PageView::contentsMouseReleaseEvent( QMouseEvent * e )
break;
case MouseSelect:{
if (d->mouseSelectionRect.isNull() && rightButton)
// if mouse is released and selection is null this is a rightClick
if ( rightButton && d->mouseSelectionRect.isNull() )
{
PageViewItem * pageItem = pickItemOnPoint( e->x(), e->y() );
emit rightClick( pageItem ? pageItem->page() : 0, e->globalPos() );
break;
}
// if a selection is defined, display a popup
if ( (!leftButton && !d->aPrevAction) || (!rightButton && d->aPrevAction) ||
d->mouseSelectionRect.isNull() )
......
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