diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-06-30 10:15:49 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-06-30 10:15:49 (GMT) |
commit | 8ea60a39a8c4661db505a6dc1342e524ec2e460c (patch) | |
tree | cc8824e9dd8178908918cd6a0e5ceb332f55168b /src/gui/widgets | |
parent | a377ae6a629051b9c06b32a993ca98be43f8c5fa (diff) | |
download | Qt-8ea60a39a8c4661db505a6dc1342e524ec2e460c.zip Qt-8ea60a39a8c4661db505a6dc1342e524ec2e460c.tar.gz Qt-8ea60a39a8c4661db505a6dc1342e524ec2e460c.tar.bz2 |
Fixed a crash in menubar with invisible actions
That would happen because the loop to find the next action when
navigating with the keyboard was not good enough.
Task-number: QTBUG-11823
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qmenubar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp index aa4ffce..e8e80b7 100644 --- a/src/gui/widgets/qmenubar.cpp +++ b/src/gui/widgets/qmenubar.cpp @@ -768,7 +768,7 @@ QAction *QMenuBarPrivate::getNextAction(const int _start, const int increment) c const int start = (_start == -1 && increment == -1) ? actions.count() : _start; const int end = increment == -1 ? 0 : actions.count() - 1; - for (int i = start; start != end;) { + for (int i = start; i != end;) { i += increment; QAction *current = actions.at(i); if (!actionRects.at(i).isNull() && (allowActiveAndDisabled || current->isEnabled())) |