summaryrefslogtreecommitdiffstats
path: root/kdecore/kshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kshortcut.cpp')
-rw-r--r--kdecore/kshortcut.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kdecore/kshortcut.cpp b/kdecore/kshortcut.cpp
index 10c6c31fa..337a126f2 100644
--- a/kdecore/kshortcut.cpp
+++ b/kdecore/kshortcut.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 KShortcut::init( int keyQt )
if( keyQt ) {
m_nSeqs = 1;
m_rgseq[0].init( TQKeySequence(keyQt) );
- } else
+ }
+ else {
clear();
+ }
return true;
}