summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-09 06:47:28 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-09 06:47:28 (GMT)
commitfec663f38742ca1e5b32ed0a49a4eff45670f825 (patch)
tree0a048c3a05d60558bbac330e39a6f5980fe571d6
parentc2b0b2d8db3f1af755bd7eb986c8eec3048af74b (diff)
Clean up
-rw-r--r--messageviewer/src/viewer/webengine/mailwebengineview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/messageviewer/src/viewer/webengine/mailwebengineview.cpp b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
index 0378561..38325cb 100644
--- a/messageviewer/src/viewer/webengine/mailwebengineview.cpp
+++ b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
@@ -197,7 +197,6 @@ void MailWebEngineView::forwardMousePressEvent(QMouseEvent *event)
if (d->mViewer) {
if (event->button() == Qt::LeftButton && (event->modifiers() & Qt::ShiftModifier)) {
// special processing for shift+click
-
URLHandlerManager::instance()->handleShiftClick(d->mHoveredUrl, d->mViewer);
event->accept();
return;
@@ -213,7 +212,7 @@ void MailWebEngineView::forwardMouseMoveEvent(QMouseEvent *event)
{
if (d->mViewer) {
// If we are potentially handling a drag, deal with that.
- if (d->mCanStartDrag && event->buttons() & Qt::LeftButton) {
+ if (d->mCanStartDrag && (event->buttons() & Qt::LeftButton)) {
if ((d->mLastClickPosition - event->pos()).manhattanLength() > QApplication::startDragDistance()) {
if (URLHandlerManager::instance()->handleDrag(d->mHoveredUrl, d->mViewer)) {