Commit 74e345af authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use startsWith

parent 7f5ac136
......@@ -168,9 +168,9 @@ void ImportAddressbookJob::addSpecificResourceSettings(KSharedConfig::Ptr resour
bool ImportAddressbookJob::isAConfigFile(const QString &name) const
{
return name.endsWith(QLatin1String("rc")) && (name.contains(QLatin1String("akonadi_vcarddir_resource_"))
|| name.contains(QLatin1String("akonadi_vcard_resource_"))
|| name.contains(QLatin1String("akonadi_contacts_resource_")));
return name.endsWith(QLatin1String("rc")) && (name.startsWith(QLatin1String("akonadi_vcarddir_resource_"))
|| name.startsWith(QLatin1String("akonadi_vcard_resource_"))
|| name.startsWith(QLatin1String("akonadi_contacts_resource_")));
}
void ImportAddressbookJob::restoreConfig()
......
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