diff options
author | Sebastien Braun | 2010-10-13 03:28:43 +0200 |
---|---|---|
committer | Sebastien Braun | 2010-10-13 03:28:43 +0200 |
commit | 2561bfbe4f72bfb2093da2d93b1298caaa4f4497 (patch) | |
tree | 1fc36b15d214c8ee26e6045c952a63f4b3558c3e | |
parent | Document changed requirements (diff) | |
download | pvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.tar.gz pvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.tar.xz pvs-2561bfbe4f72bfb2093da2d93b1298caaa4f4497.zip |
Fix key case comparison bug
-rw-r--r-- | src/gui/frame.cpp | 2 |
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(); |