Commit 706d5920 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix check url

parent acc68dc7
......@@ -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)
......
Supports Markdown
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