Commit 5dc9a8df authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't necessary to create method here

parent cfc5f134
......@@ -1022,10 +1022,8 @@ void ViewerPrivate::initHtmlWidget()
this, &ViewerPrivate::slotWheelZoomChanged);
connect(mViewer, &MailWebEngineView::messageMayBeAScam, this,
&ViewerPrivate::slotMessageMayBeAScam);
connect(mViewer, &MailWebEngineView::formSubmittedForbidden, this,
&ViewerPrivate::slotFormSubmittedForbidden);
connect(mViewer, &MailWebEngineView::mailTrackingFound, this,
&ViewerPrivate::slotMailTrackingFound);
connect(mViewer, &MailWebEngineView::formSubmittedForbidden, mSubmittedFormWarning, &SubmittedFormWarningWidget::showWarning);
connect(mViewer, &MailWebEngineView::mailTrackingFound, mMailTrackingWarning, &MailTrackingWarningWidget::addTracker);
connect(mScamDetectionWarning, &ScamDetectionWarningWidget::showDetails, mViewer,
&MailWebEngineView::slotShowDetails);
connect(mScamDetectionWarning, &ScamDetectionWarningWidget::moveMessageToTrash, this,
......@@ -3096,16 +3094,6 @@ void ViewerPrivate::slotAddToWhiteList()
}
}
void ViewerPrivate::slotMailTrackingFound(const MessageViewer::BlockMailTrackingUrlInterceptor::MailTrackerBlackList &blacklist)
{
mMailTrackingWarning->addTracker(blacklist);
}
void ViewerPrivate::slotFormSubmittedForbidden()
{
mSubmittedFormWarning->showWarning();
}
void ViewerPrivate::slotRefreshMessage(const Akonadi::Item &item)
{
if (item.id() == mMessageItem.id()) {
......
......@@ -451,9 +451,6 @@ private Q_SLOTS:
void slotMessageMayBeAScam();
void slotMessageIsNotAScam();
void slotAddToWhiteList();
void slotFormSubmittedForbidden();
void slotMailTrackingFound(const MessageViewer::BlockMailTrackingUrlInterceptor::MailTrackerBlackList &blacklist);
void slotItemChanged(const Akonadi::Item &item, const QSet<QByteArray> &partIdentifiers);
void slotItemMoved(const Akonadi::Item &, const Akonadi::Collection &, const Akonadi::Collection &);
......
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