Commit eb68b6bb authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Set ConfigPropertyMap autosave to shouldSync in FaceController

Otherwise ConfigPropertyMap will still sync data, while we do not want
it to.
parent 58a3007f
......@@ -483,6 +483,7 @@ void SensorFaceController::setFaceId(const QString &face)
d->faceConfigLoader = new KConfigLoader(cg, &file, this);
d->faceConfiguration = new KDeclarative::ConfigPropertyMap(d->faceConfigLoader, this);
d->faceConfiguration->setAutosave(d->shouldSync);
}
d->appearanceGroup.writeEntry("chartFace", face);
......@@ -761,6 +762,9 @@ bool SensorFaceController::shouldSync() const
void SensorFaceController::setShouldSync(bool sync)
{
d->shouldSync = sync;
if (d->faceConfiguration) {
d->faceConfiguration->setAutosave(sync);
}
if (!d->shouldSync && d->syncTimer->isActive()) {
d->syncTimer->stop();
}
......
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