diff --git a/applet.cpp b/applet.cpp index 578fa5575..d2461e990 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2177,11 +2177,6 @@ void AppletPrivate::updateShortcuts() void AppletPrivate::propagateConfigChanged() { - if (script && configLoader) { - configLoader->readConfig(); - script->configChanged(); - } - if (isContainment) { Containment *c = qobject_cast(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)