summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-04 07:22:01 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-04 07:22:01 (GMT)
commit706d59208f68bf3656398f8838ae63270e81faaa (patch)
tree138dc88c11fdc4dc4f8dc64c2f9daa802ae64128
parentacc68dc7ccac0dd9c1db757b5d9d8ed894374840 (diff)
Fix check url
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index ee29d9c..5fcd3d7 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -2001,9 +2001,10 @@ void ViewerPrivate::slotUrlOpen(const QUrl &url)
connect(job, &CheckPhishingUrlJob::result, this, &ViewerPrivate::slotCheckUrl);
job->setUrl(mClickedUrl);
job->start();
+#else
+ Q_EMIT urlClicked(mMessageItem, mClickedUrl);
#endif
- Q_EMIT urlClicked(mMessageItem, mClickedUrl);
}
void ViewerPrivate::slotCheckUrl(WebEngineViewer::CheckPhishingUrlJob::UrlStatus status, const QUrl &url)
@@ -2019,6 +2020,8 @@ void ViewerPrivate::slotCheckUrl(WebEngineViewer::CheckPhishingUrlJob::UrlStatus
case WebEngineViewer::CheckPhishingUrlJob::Unknown:
break;
}
+ //TODO fix me.
+ Q_EMIT urlClicked(mMessageItem, url);
}
void ViewerPrivate::slotUrlOn(const QString &link)