Commit 05866a59 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Faces: Write preset faceproperties to the right location

When loading presets we expect the faceproperties file to be located in
"contents/config/" but when writing we are placing it in "contents/"
which means that custom presets are not loaded properly.

BUG: 450745
parent 587fff41
......@@ -938,8 +938,8 @@ void SensorFaceController::savePreset()
QDir subDir(dir.path());
KConfig faceConfig(subDir.path() % QStringLiteral("/contents/faceproperties"));
KConfig faceConfig(subDir.path() % QStringLiteral("/contents/config/faceproperties"));
KConfigGroup configGroup(&faceConfig, "Config");
configGroup.writeEntry(QStringLiteral("totalSensors"), QJsonDocument(totalSensors()).toJson(QJsonDocument::Compact));
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