diff options
Diffstat (limited to 'tdecore/tdeshortcut.cpp')
-rw-r--r-- | tdecore/tdeshortcut.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tdecore/tdeshortcut.cpp b/tdecore/tdeshortcut.cpp index bae897e98..86b532f9c 100644 --- a/tdecore/tdeshortcut.cpp +++ b/tdecore/tdeshortcut.cpp @@ -70,8 +70,9 @@ bool KKey::init( int keyQt ) //if( sym.initQt( keyQt ) if( KKeyServer::keyQtToSym( keyQt, m_sym ) - && KKeyServer::keyQtToMod( keyQt, m_mod ) ) + && KKeyServer::keyQtToMod( keyQt, m_mod ) ) { return true; + } else { m_sym = 0; m_mod = 0; @@ -422,8 +423,10 @@ bool TDEShortcut::init( int keyQt ) if( keyQt ) { m_nSeqs = 1; m_rgseq[0].init( TQKeySequence(keyQt) ); - } else + } + else { clear(); + } return true; } |