summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2013-09-19 23:20:09 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-21 18:39:13 +0200
commit3edc1a4b91af23abc55c8d3ef29f45224ab06dae (patch)
tree776d0687b0bd780b2bd177b55c21752a3ea0f15e /src/gui
parentb751fcf32ac9dd1aa31a4df4993593f8ead88d81 (diff)
Fix last standard keyboard shortcut
Binary search only counted up to < N-1 items, which does not include the last value Change-Id: I40e620db3f834fce8776119d7533c157a4a02492 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qplatformtheme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp
index 18ac9dc088..c74b2d42a8 100644
--- a/src/gui/kernel/qplatformtheme.cpp
+++ b/src/gui/kernel/qplatformtheme.cpp
@@ -547,7 +547,7 @@ QList<QKeySequence> QPlatformTheme::keyBindings(QKeySequence::StandardKey key) c
else {
//We may have several equal values for different platforms, so we must search in both directions
//search forward including current location
- for (unsigned int i = mid; i < N - 1 ; ++i) {
+ for (unsigned int i = mid; i < N ; ++i) {
QKeyBinding current = QPlatformThemePrivate::keyBindings[i];
if (current.standardKey != key)
break;