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

Also (re-)load data sources when (re-)loading the provider settings

Needed to support multiple instances in the data sources too.
parent e183d0df
......@@ -124,6 +124,14 @@ void ProviderPrivate::load()
usageTime = std::max(s->value(QStringLiteral("ApplicationTime"), 0).toInt(), 0);
lastEncouragementTime = s->value(QStringLiteral("LastEncouragement")).toDateTime();
s->endGroup();
foreach (auto source, dataSources) {
s->beginGroup(QStringLiteral("Source-") + source->name());
source->load(s.get());
s->endGroup();
}
}
void ProviderPrivate::store()
......
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