[aurorae] Fix locating the config file of aurorae themes

Installed to GenericDataLocation and not DataLocation.
This commit is contained in:
Martin Gräßlin 2013-10-01 12:26:26 +02:00
parent cd6fadc84c
commit fbe5a497b4

View file

@ -100,7 +100,8 @@ bool AuroraeTheme::isValid() const
void AuroraeTheme::loadTheme(const QString &name)
{
KConfig conf(QStringLiteral("auroraerc"));
KConfig config(QStringLiteral("aurorae/themes/") + name + QStringLiteral("/") + name + QStringLiteral("rc"), KConfig::FullConfig, QStandardPaths::DataLocation);
KConfig config(QStringLiteral("aurorae/themes/") + name + QStringLiteral("/") + name + QStringLiteral("rc"),
KConfig::FullConfig, QStandardPaths::GenericDataLocation);
KConfigGroup themeGroup(&conf, name);
loadTheme(name, config);
setBorderSize((KDecorationDefines::BorderSize)themeGroup.readEntry<int>("BorderSize", KDecorationDefines::BorderNormal));