From 2561bfbe4f72bfb2093da2d93b1298caaa4f4497 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Wed, 13 Oct 2010 03:28:43 +0200 Subject: Fix key case comparison bug --- src/gui/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3-55-g7522