summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-13 13:00:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-13 13:00:31 +0300
commit4e12e0514a3ade4f693c49353c369028481999d1 (patch)
tree587db6ef35a527f66c648be26c81a8efb1e44308 /src/keyboardconfig.cpp
parent83653c919a09f17c4c53a6d65678796ac866eb25 (diff)
downloadmv-4e12e0514a3ade4f693c49353c369028481999d1.tar.gz
mv-4e12e0514a3ade4f693c49353c369028481999d1.tar.bz2
mv-4e12e0514a3ade4f693c49353c369028481999d1.tar.xz
mv-4e12e0514a3ade4f693c49353c369028481999d1.zip
Add missing checks to keyboardconfig class.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp4
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)