From 3cafce3bde87edb30dfb48879a10093d456e8d94 Mon Sep 17 00:00:00 2001 From: Thomas Braxton Date: Tue, 8 Jan 2008 07:34:53 +0000 Subject: [PATCH] KConfigGroups can now be reparented. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758543 --- containment.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/containment.cpp b/containment.cpp index 12b52333d..3b17e0134 100644 --- a/containment.cpp +++ b/containment.cpp @@ -556,12 +556,8 @@ void Containment::addApplet(Applet *applet) addChild(applet); // now move the old config to the new location - KConfigGroup c = config(); - c = KConfigGroup(&c, "Applets"); - 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); + KConfigGroup c = config().group("Applets").group(QString::number(applet->id())); + oldConfig.reparent(&c); } else { addChild(applet); }