Use caption instead of windowId.

svn path=/trunk/KDE/kdebase/workspace/; revision=865997
This commit is contained in:
Michael Jansen 2008-09-29 18:42:45 +00:00
parent e2598cbd22
commit 30f293c01f

View file

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