Commit 8ff644e0 authored by Laurent Montel's avatar Laurent Montel 😁

QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14

parent bc2e84ac
Pipeline #47726 passed with stage
in 14 minutes and 33 seconds
......@@ -236,11 +236,7 @@ void BlackListBalooEmailCompletionWidget::slotCheckIfUpdateBlackListIsNeeded()
void BlackListBalooEmailCompletionWidget::save()
{
const QString domain = mExcludeDomainLineEdit->text().remove(QLatin1Char(' '));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList newExcludeDomain = domain.split(QLatin1Char(','), QString::SkipEmptyParts);
#else
const QStringList newExcludeDomain = domain.split(QLatin1Char(','), Qt::SkipEmptyParts);
#endif
bool needToSave = (mOriginalExcludeDomain != newExcludeDomain);
KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kpimbalooblacklist"));
KConfigGroup group(config, "AddressLineEdit");
......
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