Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 52f2f454 authored by Volker Krause's avatar Volker Krause

Prefer extractor rules from the file system over those from QRC

This makes it easier to modify the compiled-in extractors during
development, without requiring a KMail restart.
parent 82a9c463
......@@ -62,8 +62,8 @@ std::vector<const Extractor *> ExtractorRepository::extractorsForMessage(KMime::
void ExtractorRepository::loadExtractors()
{
QStringList searchDirs = { QStringLiteral(":/org.kde.pim") };
searchDirs += QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation);
auto searchDirs = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation);
searchDirs += QStringLiteral(":/org.kde.pim");
for (const auto &dir : qAsConst(searchDirs)) {
QDirIterator it(dir + QStringLiteral("/messageviewer/semantic/extractors"), {QStringLiteral("*.json")}, QDir::Files);
......
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