- Only allow menu entry actions in the KMenuEdit system group.

- Create the group if a new configuration is created or a old one is
  loaded.

svn path=/trunk/KDE/kdebase/workspace/; revision=863096
This commit is contained in:
Michael Jansen 2008-09-21 05:27:16 +00:00
parent 31d3681778
commit b48c438bb0

View file

@ -416,7 +416,8 @@ void Workspace::clientShortcutUpdated( Client* c )
{
if( action == NULL ) // new shortcut
{
action = client_keys->addAction( key );
action = client_keys->addAction(QString("session:clientShortcut %1").arg(key));
action->setText(i18n("Activate Window (%1)", key)); // TODO: Add window title if possible?
connect( action, SIGNAL(triggered(bool)), c, SLOT(shortcutActivated()));
}
// no autoloading, since it's configured explicitly here and is not meant to be reused