diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboardconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp index ddfb30f97..6ce03f4a1 100644 --- a/src/keyboardconfig.cpp +++ b/src/keyboardconfig.cpp @@ -191,12 +191,12 @@ void KeyboardConfig::handleRepeat(int time) int &keyTime = (*it).second; if (key >= 0) { - if (mActiveKeys[key]) + if (mActiveKeys && mActiveKeys[key]) repeat = true; } else if (key < -1 && key > -500) { - if (mActiveKeys2[-key]) + if (mActiveKeys2 && mActiveKeys2[-key]) repeat = true; } if (repeat && abs(keyTime - time) > 10) |