Commit 74222a59 authored by Laurent Montel's avatar Laurent Montel 😁

Fix typo

parent 2979d3e1
......@@ -2747,7 +2747,7 @@ void KMComposerWin::slotCheckSendNow()
if (!mComposerBase->bcc().isEmpty()) {
lst << mComposerBase->bcc().split(QLatin1Char(','));
}
job->setPtentialPhishingEmails(lst);
job->setPotentialPhishingEmails(lst);
connect(job, &PotentialPhishingEmailJob::potentialPhishingEmailsFound, this, &KMComposerWin::slotPotentialPhishingEmailsFound);
job->start();
}
......
......@@ -78,7 +78,7 @@ void PotentialPhishingEmailJobTest::shouldReturnPotentialPhishingEmails()
PotentialPhishingEmailJob *job = new PotentialPhishingEmailJob;
job->setEmailWhiteList(whiteListEmail);
job->setPtentialPhishingEmails(listEmails);
job->setPotentialPhishingEmails(listEmails);
QVERIFY(job->start());
QCOMPARE(job->potentialPhisingEmails().isEmpty(), !hasPotentialPhishing);
}
......@@ -87,7 +87,7 @@ void PotentialPhishingEmailJobTest::shouldEmitSignal()
{
PotentialPhishingEmailJob *job = new PotentialPhishingEmailJob;
QSignalSpy spy(job, SIGNAL(potentialPhishingEmailsFound(QStringList)));
job->setPtentialPhishingEmails((QStringList() << QStringLiteral("\"bla@kde.org\" <foo@kde.org>")));
job->setPotentialPhishingEmails((QStringList() << QStringLiteral("\"bla@kde.org\" <foo@kde.org>")));
job->start();
QCOMPARE(spy.count(), 1);
}
......
......@@ -36,7 +36,7 @@ void PotentialPhishingEmailJob::setEmailWhiteList(const QStringList &emails)
mEmailWhiteList = emails;
}
void PotentialPhishingEmailJob::setPtentialPhishingEmails(const QStringList &emails)
void PotentialPhishingEmailJob::setPotentialPhishingEmails(const QStringList &emails)
{
mEmails = emails;
}
......
......@@ -32,7 +32,7 @@ public:
~PotentialPhishingEmailJob();
void setEmailWhiteList(const QStringList &emails);
void setPtentialPhishingEmails(const QStringList &emails);
void setPotentialPhishingEmails(const QStringList &emails);
QStringList potentialPhisingEmails() const;
bool start();
......
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