summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-10 07:34:13 +0200
committerMontel Laurent <[email protected]>2017-05-10 07:34:13 +0200
commit74222a59dcf909a5ce22495f41e7ca37aa7b94ac (patch)
tree44663999932f94e4e3608be39588d0b5d5615cd0
parent2979d3e196058dadc61ef86c6f1ef71a5572f7bf (diff)
Fix typo
-rw-r--r--src/editor/kmcomposerwin.cpp2
-rw-r--r--src/editor/potentialphishingemail/autotests/potentialphishingemailjobtest.cpp4
-rw-r--r--src/editor/potentialphishingemail/potentialphishingemailjob.cpp2
-rw-r--r--src/editor/potentialphishingemail/potentialphishingemailjob.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/editor/kmcomposerwin.cpp b/src/editor/kmcomposerwin.cpp
index 5571bcb..8b753be 100644
--- a/src/editor/kmcomposerwin.cpp
+++ b/src/editor/kmcomposerwin.cpp
@@ -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();
}
diff --git a/src/editor/potentialphishingemail/autotests/potentialphishingemailjobtest.cpp b/src/editor/potentialphishingemail/autotests/potentialphishingemailjobtest.cpp
index 965688f..870c2f7 100644
--- a/src/editor/potentialphishingemail/autotests/potentialphishingemailjobtest.cpp
+++ b/src/editor/potentialphishingemail/autotests/potentialphishingemailjobtest.cpp
@@ -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("\"[email protected]\" <[email protected]>")));
+ job->setPotentialPhishingEmails((QStringList() << QStringLiteral("\"[email protected]\" <[email protected]>")));
job->start();
QCOMPARE(spy.count(), 1);
}
diff --git a/src/editor/potentialphishingemail/potentialphishingemailjob.cpp b/src/editor/potentialphishingemail/potentialphishingemailjob.cpp
index 3885046..a262d8f 100644
--- a/src/editor/potentialphishingemail/potentialphishingemailjob.cpp
+++ b/src/editor/potentialphishingemail/potentialphishingemailjob.cpp
@@ -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;
}
diff --git a/src/editor/potentialphishingemail/potentialphishingemailjob.h b/src/editor/potentialphishingemail/potentialphishingemailjob.h
index 69683b4..6291768 100644
--- a/src/editor/potentialphishingemail/potentialphishingemailjob.h
+++ b/src/editor/potentialphishingemail/potentialphishingemailjob.h
@@ -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();