From 57f9668bd15c0120cd4f67daf306312193778d46 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 5 Dec 2011 00:16:53 +0100 Subject: [PATCH] config changed is not only called by config dialogs anymore, so more the script forwarding into the public API implementation --- applet.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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)