config changed is not only called by config dialogs anymore, so more the script forwarding into the public API implementation

This commit is contained in:
Aaron Seigo 2011-12-05 00:16:53 +01:00
parent 3948cfb8cf
commit 57f9668bd1

View File

@ -2177,11 +2177,6 @@ void AppletPrivate::updateShortcuts()
void AppletPrivate::propagateConfigChanged()
{
if (script && configLoader) {
configLoader->readConfig();
script->configChanged();
}
if (isContainment) {
Containment *c = qobject_cast<Containment *>(q);
if (c) {
@ -2194,6 +2189,12 @@ void AppletPrivate::propagateConfigChanged()
void Applet::configChanged()
{
if (d->script) {
if (d->configLoader) {
d->configLoader->readConfig();
}
d->script->configChanged();
}
}
void Applet::createConfigurationInterface(KConfigDialog *parent)