KConfigGroups can now be reparented.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758543
This commit is contained in:
parent
36b786137e
commit
3cafce3bde
@ -556,12 +556,8 @@ void Containment::addApplet(Applet *applet)
|
|||||||
addChild(applet);
|
addChild(applet);
|
||||||
|
|
||||||
// now move the old config to the new location
|
// now move the old config to the new location
|
||||||
KConfigGroup c = config();
|
KConfigGroup c = config().group("Applets").group(QString::number(applet->id()));
|
||||||
c = KConfigGroup(&c, "Applets");
|
oldConfig.reparent(&c);
|
||||||
c = KConfigGroup(&c, QString::number(applet->id()));
|
|
||||||
//FIXME: without the next line, we don't save the applet configuration in the new location!
|
|
||||||
// this is pending a patch to KConfigGroup, however, so can't go in right now
|
|
||||||
//oldConfig.reparent(&c);
|
|
||||||
} else {
|
} else {
|
||||||
addChild(applet);
|
addChild(applet);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user