Commit 1df35483 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent cd97358c
......@@ -540,19 +540,19 @@ void MailFilter::writeConfig(KConfigGroup &config, bool exportFilter) const
QStringList sets;
if (bApplyOnInbound) {
sets.append(QStringLiteral("check-mail"));
sets.append(QLatin1String("check-mail"));
}
if (bApplyBeforeOutbound) {
sets.append(QStringLiteral("before-send-mail"));
sets.append(QLatin1String("before-send-mail"));
}
if (bApplyOnOutbound) {
sets.append(QStringLiteral("send-mail"));
sets.append(QLatin1String("send-mail"));
}
if (bApplyOnExplicit) {
sets.append(QStringLiteral("manual-filtering"));
sets.append(QLatin1String("manual-filtering"));
}
if (bApplyOnAllFolders) {
sets.append(QStringLiteral("all-folders"));
sets.append(QLatin1String("all-folders"));
}
config.writeEntry("apply-on", sets);
......
......@@ -396,12 +396,12 @@ void SearchRuleWidget::initFieldList(SearchPatternEdit::SearchPatternEditOptions
// these others only represent message headers and you can add to
// them as you like
mFilterFieldList.append(QStringLiteral("List-Id"));
mFilterFieldList.append(QStringLiteral("Resent-From"));
mFilterFieldList.append(QStringLiteral("X-Loop"));
mFilterFieldList.append(QStringLiteral("X-Mailing-List"));
mFilterFieldList.append(QStringLiteral("X-Spam-Flag"));
mFilterFieldList.append(QStringLiteral("X-Spam-Status"));
mFilterFieldList.append(QLatin1String("List-Id"));
mFilterFieldList.append(QLatin1String("Resent-From"));
mFilterFieldList.append(QLatin1String("X-Loop"));
mFilterFieldList.append(QLatin1String("X-Mailing-List"));
mFilterFieldList.append(QLatin1String("X-Spam-Flag"));
mFilterFieldList.append(QLatin1String("X-Spam-Status"));
}
void SearchRuleWidget::slotRuleFieldChanged(const QString &field)
......
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