The order that applets are saved is currently important for the panel. If an
applet is removed from the panel and readded elsewhere, its position in the config file currently doesn't change. To fix this, this patch clears out the config group before rewriting it out. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754139
This commit is contained in:
parent
cf40a07331
commit
9cec9edf9c
@ -138,6 +138,7 @@ void Corona::saveApplets(const QString &config) const
|
||||
containment->saveConstraints(&containmentConfig);
|
||||
containment->save(&containmentConfig);
|
||||
KConfigGroup applets(&containmentConfig, "Applets");
|
||||
applets.deleteGroup();
|
||||
foreach (const Applet* applet, containment->applets()) {
|
||||
KConfigGroup appletConfig(&applets, QString::number(applet->id()));
|
||||
applet->save(&appletConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user