Commit c9a18a97 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use correct kf<version>

parent 4d3dd949
Pipeline #157289 passed with stage
in 9 minutes and 7 seconds
......@@ -142,7 +142,8 @@ bool Akonadi::XmlDocument::loadFile(const QString &fileName)
return false;
}
const QString &schemaFileName = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kf5/akonadi/akonadi-xml.xsd"));
const QString &schemaFileName =
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/akonadi/akonadi-xml.xsd"));
XmlPtr<xmlDocPtr, xmlFreeDoc> schemaDoc(xmlReadFile(schemaFileName.toLocal8Bit().constData(), nullptr, XML_PARSE_NONET));
if (!schemaDoc) {
d->lastError = i18n("Schema definition could not be loaded and parsed.");
......
Supports Markdown
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