save shortcut settings

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815055
This commit is contained in:
Aaron J. Seigo 2008-06-01 03:03:43 +00:00
parent 4878d04cc3
commit b228fb7c49

View File

@ -173,6 +173,11 @@ void Applet::save(KConfigGroup &group) const
KConfigGroup appletConfigGroup(&group, "Configuration"); KConfigGroup appletConfigGroup(&group, "Configuration");
//FIXME: we need a global save state too //FIXME: we need a global save state too
saveState(appletConfigGroup); saveState(appletConfigGroup);
if (d->activationAction) {
KConfigGroup shortcutConfig(&group, "Shortcuts");
shortcutConfig.writeEntry("global", d->activationAction->globalShortcut().toString());
}
} }
void Applet::restore(KConfigGroup &group) void Applet::restore(KConfigGroup &group)