From 4e12e0514a3ade4f693c49353c369028481999d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Aug 2012 13:00:31 +0300 Subject: Add missing checks to keyboardconfig class. --- src/keyboardconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/keyboardconfig.cpp') 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) -- cgit v1.2.3-70-g09d2