don't take the value of a temporary

svn path=/trunk/KDE/kdelibs/; revision=1197047
This commit is contained in:
Aaron J. Seigo 2010-11-14 19:10:06 +00:00
parent 6764ddfe03
commit c1f8c20bfd

View File

@ -2503,7 +2503,8 @@ KConfigGroup Containment::containmentActionsConfig()
KConfigGroup cfg; KConfigGroup cfg;
switch (d->containmentActionsSource) { switch (d->containmentActionsSource) {
case ContainmentPrivate::Local: case ContainmentPrivate::Local:
cfg = KConfigGroup(&config(), "ActionPlugins"); cfg = config();
cfg = KConfigGroup(&cfg, "ActionPlugins");
break; break;
case ContainmentPrivate::Activity: case ContainmentPrivate::Activity:
cfg = KConfigGroup(corona()->config(), "Activities"); cfg = KConfigGroup(corona()->config(), "Activities");