From b48c438bb09dced2cb085a3903f91b5da404dc97 Mon Sep 17 00:00:00 2001 From: Michael Jansen Date: Sun, 21 Sep 2008 05:27:16 +0000 Subject: [PATCH] - 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 --- useractions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/useractions.cpp b/useractions.cpp index 31cdd1a55e..51aedde899 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -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