From d7ac1ce38f57b4e832f61fe1c1c008b6cdefdcbb Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 2 Jan 2005 17:24:50 +0000 Subject: [PATCH] Put back the RMB menu svn path=/trunk/kdegraphics/kpdf/; revision=374986 --- ui/pageview.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index c7f71cf70..a12863d52 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -636,13 +636,12 @@ void PageView::contentsMouseReleaseEvent( QMouseEvent * e ) // return the cursor to its normal state after dragging if (cursor().shape() == Qt::SizeAllCursor) updateCursor( e->pos() ); + PageViewItem * pageItem = pickItemOnPoint( e->x(), e->y() ); + // avoid the situation in where you click on a "row" that has a link but you are not over it // drag a bit and move the mouse left to place it over the link while dragging // release the button and BOOM you get the link followed - if (d->mouseStartPos != e->globalPos()) return; - - PageViewItem * pageItem = pickItemOnPoint( e->x(), e->y() ); - if ( leftButton && pageItem ) + if ( leftButton && pageItem && d->mouseStartPos == e->globalPos()) { const KPDFPageRect * rect = pageItem->page()->getRect( e->x() - pageItem->geometry().left(),