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:
parent
3948cfb8cf
commit
57f9668bd1
11
applet.cpp
11
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<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)
|
||||
|
Loading…
Reference in New Issue
Block a user