Port from deprecated KConfigLoader API

Change-Id: I9fe88d2b0b16dab02e4e35af3d0e992cec0edb91
This commit is contained in:
David Edmundson 2015-02-11 14:52:41 +01:00
parent 685ee11822
commit e0f6b76f4b

View File

@ -156,7 +156,7 @@ void Applet::save(KConfigGroup &g) const
// we're saving so we know its changed, we don't need or want the configChanged // we're saving so we know its changed, we don't need or want the configChanged
// signal bubbling up at this point due to that // signal bubbling up at this point due to that
disconnect(d->configLoader, SIGNAL(configChanged()), this, SLOT(propagateConfigChanged())); disconnect(d->configLoader, SIGNAL(configChanged()), this, SLOT(propagateConfigChanged()));
d->configLoader->writeConfig(); d->configLoader->save();
connect(d->configLoader, SIGNAL(configChanged()), this, SLOT(propagateConfigChanged())); connect(d->configLoader, SIGNAL(configChanged()), this, SLOT(propagateConfigChanged()));
} }
} }
@ -669,7 +669,7 @@ void Applet::configChanged()
{ {
if (d->script) { if (d->script) {
if (d->configLoader) { if (d->configLoader) {
d->configLoader->readConfig(); d->configLoader->load();
} }
d->script->configChanged(); d->script->configChanged();
} }