summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Braun2010-10-13 03:28:43 +0200
committerSebastien Braun2010-10-13 03:28:43 +0200
commit2561bfbe4f72bfb2093da2d93b1298caaa4f4497 (patch)
tree1fc36b15d214c8ee26e6045c952a63f4b3558c3e
parentDocument changed requirements (diff)
downloadpvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.tar.gz
pvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.tar.xz
pvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.zip
Fix key case comparison bug
-rw-r--r--src/gui/frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp
index 12d49bc..561f3ce 100644
--- a/src/gui/frame.cpp
+++ b/src/gui/frame.cpp
@@ -545,7 +545,7 @@ void Frame::keyPressEvent(QKeyEvent* event)
// modify keys if they are lowercase or uppercase
// versions of the keycode.
- if(c.toLower().toLatin1() == key || c.toUpper().toLatin1() == key)
+ if(c.toLower().toLatin1() == (char)key || c.toUpper().toLatin1() == (char)key)
{
// We found a Latin1 char and pray it is the correct case.
key = c.cell();