Make setting the same shortcut again work.

svn path=/trunk/kdebase/kwin/; revision=385879
This commit is contained in:
Luboš Luňák 2005-02-03 15:59:57 +00:00
parent 8357a882fb
commit 119aa760c7

View file

@ -963,7 +963,7 @@ void Client::setShortcut( const QString& _cut )
// E.g. Alt+Ctrl+(ABCDEF) Win+X,Win+(ABCDEF) // E.g. Alt+Ctrl+(ABCDEF) Win+X,Win+(ABCDEF)
if( !cut.contains( '(' ) && !cut.contains( ')' ) && !cut.contains( ' ' )) if( !cut.contains( '(' ) && !cut.contains( ')' ) && !cut.contains( ' ' ))
{ {
if( workspace()->shortcutAvailable( KShortcut( cut ))) if( workspace()->shortcutAvailable( KShortcut( cut ), this ))
setShortcutInternal( KShortcut( cut )); setShortcutInternal( KShortcut( cut ));
else else
setShortcutInternal( KShortcut()); setShortcutInternal( KShortcut());