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()
|
void AppletPrivate::propagateConfigChanged()
|
||||||
{
|
{
|
||||||
if (script && configLoader) {
|
|
||||||
configLoader->readConfig();
|
|
||||||
script->configChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isContainment) {
|
if (isContainment) {
|
||||||
Containment *c = qobject_cast<Containment *>(q);
|
Containment *c = qobject_cast<Containment *>(q);
|
||||||
if (c) {
|
if (c) {
|
||||||
@ -2194,6 +2189,12 @@ void AppletPrivate::propagateConfigChanged()
|
|||||||
|
|
||||||
void Applet::configChanged()
|
void Applet::configChanged()
|
||||||
{
|
{
|
||||||
|
if (d->script) {
|
||||||
|
if (d->configLoader) {
|
||||||
|
d->configLoader->readConfig();
|
||||||
|
}
|
||||||
|
d->script->configChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Applet::createConfigurationInterface(KConfigDialog *parent)
|
void Applet::createConfigurationInterface(KConfigDialog *parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user