Commit 57815318 authored by Volker Krause's avatar Volker Krause
Browse files

Actually load/store persistent source data like the docs claim we do

parent a16dd560
......@@ -148,9 +148,13 @@ void ProviderPrivate::store()
s->setValue(QStringLiteral("ApplicationTime"), currentApplicationTime());
s->setValue(QStringLiteral("LastEncouragement"), lastEncouragementTime);
s->endGroup();
foreach (auto source, dataSources)
foreach (auto source, dataSources) {
s->beginGroup(QStringLiteral("Source-") + source->name());
source->store(s.get());
s->endGroup();
}
}
void ProviderPrivate::aboutToQuit()
......@@ -436,7 +440,7 @@ void Provider::addDataSource(AbstractDataSource *source, StatisticsCollectionMod
d->dataSources.push_back(source);
auto s = d->makeSettings();
s->beginGroup(QStringLiteral("UserFeedback"));
s->beginGroup(QStringLiteral("Source-") + source->name());
source->load(s.get());
}
......
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