Commit 7df000b8 authored by David Faure's avatar David Faure

Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation

They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path.

NO_CHANGELOG
parent 8e804a7c
......@@ -46,7 +46,7 @@ void ProductMapping::map(const QString & appName)
void ProductMapping::mapUsingInternalFile(const QString & appName)
{
KConfig mappingsFile(QString::fromLatin1("mappings"), KConfig::NoGlobals, QStandardPaths::DataLocation);
KConfig mappingsFile(QString::fromLatin1("mappings"), KConfig::NoGlobals, QStandardPaths::AppDataLocation);
const KConfigGroup mappings = mappingsFile.group("Mappings");
if (mappings.hasKey(appName)) {
QString mappingString = mappings.readEntry(appName);
......@@ -71,7 +71,7 @@ void ProductMapping::getRelatedProductsUsingInternalFile(const QString & bugzill
//ProductGroup -> kontact=kdepim
//Groups -> kdepim=kontact|kmail|korganizer|akonadi|pimlibs..etc
KConfig mappingsFile(QString::fromLatin1("mappings"), KConfig::NoGlobals, QStandardPaths::DataLocation);
KConfig mappingsFile(QString::fromLatin1("mappings"), KConfig::NoGlobals, QStandardPaths::AppDataLocation);
const KConfigGroup productGroup = mappingsFile.group("ProductGroup");
//Get groups of the application
......
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